I have a chart in AmCharts that reflects integer values; as such, I want the value in the Y axis to be an integer as well, however they are displayed as a floating point. I read the documentation and found a link to: numberFormatter with the following syntax:
chart.numberFormatter = { precision:-1,decimalSeparator:".",thousandsSeparator:"," };
Change in accuracy is not affected. I saw that sentences when set to 0 will work to remove the value after the decimal, but that is not the case. I also read that setting accuracy -1 prevents rounding, which confuses me as to what accuracy is used for.
I am using AmCharts version 2.9.3 . I found that there is an error in which numberFormatter is ignored in this version (pre 2.11) when usePrefixes was set to true, but it is not.
I found links to a parameter called: digits_after_decimal
However, the links I found were for much older versions of AmCharts, and the link was to this parameter in the configuration file; and I do not see the links for this in my version.
I have done quite a bit of research and am looking for any pointers regarding what I am doing wrong, as I know that this is just a misunderstanding of the API. I also play with the JSFiddle example from the AmCharts website:
http://jsfiddle.net/amcharts/zu9nW/
source
share