X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fextras%2Fsuper-annotations.js;h=ad5d93f4a985afe2b66eb8167357e3069b681358;hb=aec24511f59ace8681d28cb5d11d04f9f57357b4;hp=b8b10c662a8340d476162e4cbb5f116d4bf63a16;hpb=3123ca57f71d145bb5bcc4a2f754d3dff3225346;p=dygraphs.git 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);