setting line thickness for a graph - Achart engine

谁说我不能喝 提交于 2019-12-05 02:46:02

问题


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.


回答1:


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);
        }


来源:https://stackoverflow.com/questions/4678324/setting-line-thickness-for-a-graph-achart-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!