I'm trying to make a stock chart, and were looking for a way to properly split the price on the x-axis and the date (in milliseconds) on the y-axis.
if I for example have
1000
10
1266278400000
1477008000000
10
I think it's as simple as:
(high - low) / 10
That gets your step size. Then, loop through adding that step size each iteration.