Adding xOptView for xfv.call to work properly
authorPetr Shevtsov <petr.shevtsov@gmail.com>
Sat, 13 Jun 2015 23:55:06 +0000 (02:55 +0300)
committerPetr Shevtsov <petr.shevtsov@gmail.com>
Sat, 13 Jun 2015 23:55:06 +0000 (02:55 +0300)
src/extras/super-annotations.js

index b8b10c6..ad5d93f 100644 (file)
@@ -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);