Open jsscks opened 8 years ago
Awesome! Thanks @jsscks - couldn't figure out what was going on until I saw this.
I have this issue too.
Cause of it is datapoints.pointsize
, when it equals 3 than plugin incorrectly calc index for y value (390 & 391 lines on full script version)
390: var pointSize = item.series.datapoints.pointsize;
391: var idx = item.dataIndex * pointSize;
392: x = item.series.datapoints.points[idx];
393: y = item.series.datapoints.points[idx + 1];
Here is jquey.flot.js:
Bars and lines with filling will have 3 points shift in datapoints.
Here is jquery.flot.tooltip.js:
Shift by 2 is forced. You should multiply on item.series.datapoints.pointsize instead of 2.