X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2Fannotations.js;h=f6dd68edd7c58048acae920a13d84f990877afb6;hb=0bc4cb546af5d1ce157ad701a45169cc07c9c839;hp=87153c8152795d602ec76b2b8173fb7b01b68a06;hpb=36b7208a4cb1495492009ff1be0364c119816cec;p=dygraphs.git diff --git a/src/plugins/annotations.js b/src/plugins/annotations.js index 87153c8..f6dd68e 100644 --- a/src/plugins/annotations.js +++ b/src/plugins/annotations.js @@ -148,7 +148,8 @@ annotations.prototype.didDrawChart = function(e) { var ctx = e.drawingContext; ctx.save(); - ctx.strokeStyle = g.colorsMap_[p.name]; + ctx.strokeStyle = a.hasOwnProperty('tickColor') ? a.tickColor : g.colorsMap_[p.name]; + ctx.lineWidth = a.hasOwnProperty('tickWidth') ? a.tickWidth : g.getOption('strokeWidth'); ctx.beginPath(); if (!a.attachAtBottom) { ctx.moveTo(p.canvasx, p.canvasy);