如何在MPAndroidChart中将不同样式设置为单线图?

时间:2022-06-08 05:12:58

Hello am using MPAndroiChart for my Android App

您好我的Android应用程序使用MPAndroiChart

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?

可以在MPAndroidChart中做到吗?

1 个解决方案

#1


5  

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

是的,调用lineDataSet.enableDashedLine(...)文档:https://github.com/PhilJay/MPAndroidChart/wiki/DataSet-classes-in-detail

#1


5  

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

是的,调用lineDataSet.enableDashedLine(...)文档:https://github.com/PhilJay/MPAndroidChart/wiki/DataSet-classes-in-detail