X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=f5f19d2bf72a54f75e1e28b7730cbc8f4944843f;hb=5879307d645ba06bceb1664d33f689888628556c;hp=18dea9e3f00686db5a42761caa9a8fdfd0611ecf;hpb=1f6a6254deed20c2c25108bf6d98a298898ba34a;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 18dea9e..f5f19d2 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1753,10 +1753,12 @@ Dygraph.prototype.updateSelection_ = function() { if (!Dygraph.isOK(pt.canvasy)) continue; var circleSize = this.attr_('highlightCircleSize', pt.name); - ctx.beginPath(); - ctx.fillStyle = this.plotter_.colors[pt.name]; - ctx.arc(canvasx, pt.canvasy, circleSize, 0, 2 * Math.PI, false); - ctx.fill(); + var callback = this.attr_("drawHighlightPointCallback", pt.name); + if (!callback) { + callback = Dygraph.Circles.DEFAULT; + } + callback(this.g, pt.name, ctx, canvasx, pt.canvasy, + this.plotter_.colors[pt.name], circleSize); } ctx.restore();