简体   繁体   中英

Line chart in android with different colors

Android折线图图像

I have done a lot of searching on this topic but still couldn't get it working.I want to make line chart in android.how can i make exactly this(in image) type of graph.I have used a chart engine library and graph view but I could not meet my requirement.

I think you can use this line for changing the colour :-

  XYSeriesRenderer r = new XYSeriesRenderer();
    r.setColor(Color.BLUE);

setting the pointing style :-

    r = new XYSeriesRenderer();
    r.setPointStyle(PointStyle.CIRCLE);

may be this link will be helpful to you :- http://www.oodlestechnologies.com/blogs/Drawing-graphs-in-Android-using-aChartEngine-charting-library-%28Line-Charts%29

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM