You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!format) {
format = [];
// find out how to copy
format.push({ x: true, number: true, required: true });
format.push({ y: true, number: true, required: true });
if (s.bars.show || (s.lines.show && s.lines.fill)) {
...
format.push({ y true, number: true, required: false, defaultValue: 0, autoscale: autoscale });
...
s.datapoints.pointsize = format.length;
Bars and lines with filling will have 3 points shift in datapoints.
Here is jquery.flot.tooltip.js:
if (typeof item.series.lines !== "undefined" && item.series.lines.steps) {
x = item.series.datapoints.points[item.dataIndex * 2];
y = item.series.datapoints.points[item.dataIndex * 2 + 1];
// TODO: where to find custom text in this variant?
customText = "";
}
Shift by 2 is forced. You should multiply on item.series.datapoints.pointsize instead of 2.
The text was updated successfully, but these errors were encountered:
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)
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.
The text was updated successfully, but these errors were encountered: