The date-time axis works as a string, and not as the correct continuous date / time axis in the Zing diagram

I draw a date-time and integer in ZingChart. Even if the difference is one second or the difference is 1 hour, the width is the same between two points. If the initial time coincides with the previous one, as in my attached image at 23:24:40, there should not be a white gap between them, if this is the correct date and time axis. Is there a solution to this problem? You can also view it at alnnovative.com/zing6.php enter image description here

+4
source share
1 answer

ZingChart automatically puts values ​​in each index, if you do not use key pairs, values ​​as your data points. To do this, set the values ​​of your serial objects as follows:

"values":[ [1420070400000,50], [1420071000000,50], [1420070520000,50], [1420070640000,50], [1420070700000,50], [1420070760000,50], [1420070820000,50], [1420070940000,50], [1420071060000,50] ] 

Check out this demo . I am a member of the ZingChart team, let me know if you need more help.

+5
source

All Articles