I am researching about Achartengine for drawing simple line charts.
I got stuck on a single interesting thing.
I have already set:
renderer.setDisplayChartValues(true);
renderer.setChartValuesTextSize(30f);
However, it only shows the value when my data has two or more values.
I captured the screen for you to easily understand my point.
Does anyone know why?
Please help me.
Ihad the same issue. I solved it by editing the aChartEngine source code.
In particular, in:
XYChart.java - drawChartValuesText()
I changed this
to this
So, 1 has to become 2, and it magically works.
Credits and respects to
Matthieu Holz
for the precious hint