From 1c725c8774f51aacbc399edaee7dd5e7fc9bbc5c Mon Sep 17 00:00:00 2001 From: Petr Shevtsov Date: Sun, 14 Jun 2015 02:55:06 +0300 Subject: [PATCH] Adding xOptView for xfv.call to work properly --- src/extras/super-annotations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.7.4