X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=1d97bda83db91ba67d2f65a692ccb97464e3c353;hb=38dbac3e0b3c24486d3f548ae63dabd6e1d73bc3;hp=148da341387686f9b1a5b4cb315ffec6dd067202;hpb=240df72e34176516f2d3455e924d7e2d756db773;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 148da34..1d97bda 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1922,10 +1922,12 @@ Dygraph.prototype.updateSelection_ = function(opt_animFraction) { 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();