novus/nvd3

Tooltip valueFormatter has no effect in linePlusBarChart

Opened this issue · 1 comments

NVD3 version used: 1.8.6
Browser: Chrome (Version 61.0.3163.100 (Official Build) (64-bit))
OS: Windows 10 Pro
Live Example: I just got the linePlusBarChart.html default example and added the line chart.tooltip.valueFormatter( function(d) { return "1"; } ); (example)
Expected Behaviour: The method chart.tooltip.valueFormatter should modify the value of the tooltip.
Present Behaviour: Nothing happens, the method is not even called.

Hi Raphael,

I got the same issue and it was due to .useInteractiveGuideline() set to true. If that is your case, use chart.interactiveLayer.tooltip.contentGenerator instead. Please also verify that tooltip is enabled :)

Jorge