Decimal number in ColumnChart
joacaar opened this issue · 1 comments
joacaar commented
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
AnanlaTech commented
Use this way.
ySubColumn.setLabel("${"%.3f".format(value.y)}")