How to set diffent style to single line graph in MPAndroidChart?

强颜欢笑 提交于 2021-01-22 08:46:36

问题


Hello am using MPAndroiChart for my Android App

I stuck with a requirement where I have to draw a line chart(a single line) with different style. Some part of the line is straight and some part is dotted. Something like this

________...........__________________...______

Is it possible to do in MPAndroidChart?


回答1:


Yes, call lineDataSet.enableDashedLine(...) Documentation: https://github.com/PhilJay/MPAndroidChart/wiki/DataSet-classes-in-detail



来源:https://stackoverflow.com/questions/33011210/how-to-set-diffent-style-to-single-line-graph-in-mpandroidchart

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