admin管理员组文章数量:1403329
I have seen a very similar question already, that concerns chart.js, but I am using the chart.js streaming plugin(/). Therefore my code looks like this:
options: {
plugins: {
streaming: {
duration: 20000,
refresh: 50,
delay: 1000,
frameRate: 30
}
},
scales: {
x: {
type: 'realtime'
}
}
}
Adopting a solutions from this problem: Chart.js showing time (HH:MM:SS - 24 hour clock) on xAxis doesn’t seem to work because of this.
What other way is there to have a 24h format on the x-axis with this plugin?
本文标签: javascriptChartjs streaming showing time (HHMMSS24 hour clock) on xAxisStack Overflow
版权声明:本文标题:javascript - Chart.js streaming showing time (HH:MM:SS - 24 hour clock) on xAxis - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744410957a2604947.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论