Bar_chart having problem with Float values with huge number
Author: mahesh87taCreated Dec 19, 2016Updated Apr 13, 2026
I have tried to set the Barchat with huge number of float value as ex: 81333236.89 but while disciplining in the graph it is rounding the procession.
I want to display the exact value with 2 digit after procession. I have tried to set as double value but BarEntry allows me only float value.
// For ex ArrayList workers = new ArrayList(); workers.add(new BarEntry(81333236.89 ,0)); //workers.add(new BarEntry((float)81333236.89 ,0)); workers.add(new BarEntry(61345563.89 ,1)); //workers.add(new BarEntry((float) 61345563.89 ,1));
Please help me how to set the huge (7, 8 digit) float or double values with exact procession without rounding to display in the graph.
Thanks, mahesh87.ta
Source: PhilJay/MPAndroidChart