ctx.moveTo(point.canvasx, point.canvasy);
}
if (drawPoints || isIsolated) {
- pointsOnLine.push([point.canvasx, point.canvasy]);
+ pointsOnLine.push([point.canvasx, point.canvasy, point.idx]);
}
prevCanvasX = point.canvasx;
prevCanvasY = point.canvasy;
var cb = pointsOnLine[idx];
ctx.save();
drawPointCallback(
- e.dygraph, e.setName, ctx, cb[0], cb[1], color, pointSize);
+ e.dygraph, e.setName, ctx, cb[0], cb[1], color, pointSize,cb[2]);
ctx.restore();
}
};
y: yNormal,
xval: xValue,
yval: yValue,
- name: setName // TODO(danvk): is this really necessary?
+ name: setName, // TODO(danvk): is this really necessary?
+ idx: j + this.dygraph_.boundaryIds_[setIdx][0]
};
}
ctx.strokeStyle = color;
ctx.fillStyle = color;
callback(this.g, pt.name, ctx, canvasx, pt.canvasy,
- color, circleSize);
+ color, circleSize,pt.idx);
}
ctx.restore();