HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

Minor tick calculation #279

Open alesl opened 10 years ago

alesl commented 10 years ago

There is a problem with minor tick calculation in file js/Axis.js, line 272:

for (j = 0; j < o.minorTickFreq && (i * tickSize + j * minorTickSize) < max; ++j) {

it seems condition is wrong and should be:

for (j = 0; j < o.minorTickFreq && (v2 + j * minorTickSize) < max; ++j) {