Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法将 x 轴刻度线/时间戳更改为仅显示小时和分钟,并删除秒。我尝试将模式更改为“时间”并使用“时间格式”;那没有用。我只想显示分钟间隔,任何帮助将不胜感激。谢谢!
http://i.imgur.com/zRBbVds.png
您可以timeFormat在xaxis
timeFormat
xaxis
这将需要jquery.flot.time.js插件。如果您探索此插件中的格式,您可以创建自己的格式,但我认为这行代码xaxis将是您所追求的:
jquery.flot.time.js
var timeFormat = "%a %d/%m %H:%M"; xaxis: { mode: "time", timeformat: timeFormat, show: true }