Commercial consulting requests have a guaranteed response time.
We can deliver a turn key solution or contribute to your project
For fast and deep dive into framework features to shift your team productivity.
Experts in Enterprise software
Creators of the CUBA Platform
Established in 2008
Hi
I’m trying to format numbers in a chart and I don’t see how I should define it.
Looking at amcharts doc, there should be somewhere a numberFormatter property for a chart but I don’t see it in CUBA components.
numberFormatter
How this has been mapped ?
Regards Michael
Hi,
the link that you’ve posted refferences to the AmCharts v4, but in CUBA plutform the v3 is used. Try to add the precision="<desired_precision>" attribute to the chart element. That should help. Let me know if you still have problems.
precision="<desired_precision>"
Regards, Gleb
Also, you can use baloonFunction for more flexible formatting, for instance I have the following graph definition:
baloonFunction
<chart:graph type="COLUMN" valueField="income"> <chart:balloonFunction> <![CDATA[ function(item, graph) { return item.dataContext["income"].toFixed(2); } ]]> </chart:balloonFunction> </chart:graph>