hellocharts-android
hellocharts-android copied to clipboard
Decimal number in ColumnChart
Hello I'm using a columnChart and I need to show the value in each column, everything correct. The problem is when I need to show a decimal number in a label of the column, shows an integer and around the number. How can I show a decimal number?
In the same example, i need configure the range of th Y axis to add 5 to the max value. How can i configure? i'm using a static function "Axis axisY = Axis.generateAxisFromRange(0, 120, 10);"
Thanks
Use this way. ySubColumn.setLabel("${"%.3f".format(value.y)}")