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