Yes ... But what is the problem with this?
This is e.g. the raw-data read from the database:
1696831539163 0
1696831601046 2.58
1696831659189 2.6
1696831719379 2.6
1696831781108 2.83
1696831839203 3.36
1696831899218 3.57
1696831959105 4.26
1696832021111 4.42
1696832079160 4.58
1696832139102 4.8
1696832199151 4.94
1696832259215 5.18
1696832319103 5.82
1696832379210 6.27
1696832439201 6.5
1696832499225 7.26
1696832559245 6.95
1696832619184 7.14
1696832679394 7.83
1696832739283 7.77
1696832799188 8.82
1696832859187 10.42
1696832919285 9.93
1696832979228 9.63
1696833039114 10.76
1696833099187 9.56
1696833159178 10.1
1696833219310 9.69
This is what the chart is receiving:
And this is what the chart is showing:
What I am expecting the chart to do is, to convert the x-axis to this:
If the chart receives the integer of the timestamps, it shows this:
If I change
dt = new Date(Number(times[i]));
to
dt = new Date(times[i]);
the result is:
I hope I could make you understand what I am trying to do.