Currency formatting in charts |
5/24/2022 4:06:28 PM |
PHPRunner Tips and Tricks | |
![]() If you need to have more control over numbers and currency formatting in charts, this article is for you. All the code here is Javascript, applies without changes to all PHPRunner, ASPRunner.NET and ASPRunerPro. This code is supposed to go to ChartModify event. For isntance, you need to format your data as German (Euro) currency value, with two digits after comma. chart.getSeriesAt(0).labels().format (function(){ And here is how it is going to look:
Another example, value in Euro with no digits after comma: chart.getSeriesAt(0).labels().format (function(){ More info about Intl.NumberFormat object. |
|