Search code examples
androidbar-chartachartengineseparator

Comma separator in aChartEngine


I'm using aChartEngine to design charts for my app reports but i wanted to know that is it possible to have a comma separator for XYSeries in BarCharts?

any help would be appreciated!


Solution

  • Finally i got the answer with the help of dear Dan and i want to share this with you maybe it's someone else issue,hope it helps:

    After updating my achartengine jar file to build 1.1.0 , i've found a handy function named 'setChartValuesFormat' in XYSeriesRenderer , so i've defined a NumberFormat like below :

    public static final NumberFormat IntegerFormatter = new DecimalFormat("###,###,###.##");
    

    then i used this NumberFormat in that function :

    SalesRenderer.setChartValuesFormat(GlobalVariables.IntegerFormatter);
    

    and it works Perfect!