X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=680aa81849a0e5f563e43a31f57d9159c704ac5e;hb=65728bc9155b54d20889d255f6d3d8766af8c144;hp=0748d2642b90e484b5340d1dae6c8a75b2925141;hpb=d7eddd785376258159add55a4af7cb44c4fd9384;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 0748d26..680aa81 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1761,10 +1761,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();