morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

How to get number of values for every hour in morris chart #777

Open AlexCods opened 5 years ago

AlexCods commented 5 years ago

Hi, I've got an array with values that has a datetime value, I want to create a chart of 0:00 to 23:00 and put this values on it.

Y axis: values 0 to 200 X axis: 0:00 - 1:00 - 2:00 - 3:00 ..... 22:00 - 23:00

And put 10 values at 02:00, 23 values at 8:00...

Can someone help me pls?