Open Qvatra opened 9 years ago
Yes there is a way. You need to add option parameter called unitTransform, which is a function applied to the value before shown in the tooltip.
It works with barchart. Check the GraphTests.html file which has the example. Basically if the parent viewModel has a function "valueToLabel" the following will work:
<div id="monthlySales2" data-bind="barchart: carSales,chartOptions:{style:'bar',xcoord:'month',unitTransform:valueToLabel}">
for example I need to format the value in tooltip which in my case is 1.333333333333333 which is not informative at all but take a lot of space..