It works perfectly and 'formatter' allows to choose what will be printed in the tooltip.
The matter is I would also like to use the valueFormatter (https://echarts.apache.org/en/option.html#tooltip.valueFormatter) callback to format a number into a currency string, so tried:
Using Echarts as chart library and trying to format the tooltips. Starting from a set of options like:
It works perfectly and 'formatter' allows to choose what will be printed in the tooltip. The matter is I would also like to use the valueFormatter (https://echarts.apache.org/en/option.html#tooltip.valueFormatter) callback to format a number into a currency string, so tried:
The chart is still working but an error in console is fired on every mouseover on a value bar and no tooltips are showing anymore.
Anyone came to a solution for something similar? TYVM