From: Petr Shevtsov Date: Sat, 13 Jun 2015 23:55:06 +0000 (+0300) Subject: Adding xOptView for xfv.call to work properly X-Git-Tag: v2.0.0~40^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1c725c8774f51aacbc399edaee7dd5e7fc9bbc5c;p=dygraphs.git Adding xOptView for xfv.call to work properly --- diff --git a/src/extras/super-annotations.js b/src/extras/super-annotations.js index b8b10c6..ad5d93f 100644 --- a/src/extras/super-annotations.js +++ b/src/extras/super-annotations.js @@ -315,9 +315,10 @@ annotations.prototype.getTemplateHTML = function(div, a) { var col = row_col[1]; var yOptView = g.optionsViewForAxis_('y1'); // TODO: support secondary, too + var xOptView = g.optionsViewForAxis_('x'); var xvf = g.getOptionForAxis('valueFormatter', 'x'); - var x = xvf.call(g, a.xval); + var x = xvf.call(g, a.xval, xOptView); var y = g.getOption('valueFormatter', a.series).call( g, g.getValue(row, col), yOptView);