I am using AchartEngine for my android phone applications. Everything looks fine but the thickness of a line for the rendered graphs does not appeared to be good. I wanted to increase the thickness for these graphs.
Asked
Active
Viewed 2,867 times
1 Answers
18
OK, I got the answer. It should be something like below:
int length = renderer.getSeriesRendererCount();
for (int i = 0; i < length; i++) {
XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer
.getSeriesRendererAt(i);
seriesRenderer.setLineWidth(2f);
}

Sudhakar Chavali
- 809
- 2
- 14
- 32
-
1You should also take today's full HD display into account. LineWidth is in pixels, so recompute them by pixel density. http://stackoverflow.com/questions/6263250/convert-pixels-to-sp – Michal Dobrodenka Apr 22 '14 at 16:23
-
setLineWidth i could not find this function plz help – KOTIOS Jun 06 '14 at 12:36