Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 350
Sandeep Tengale Avatar asked Oct 08 '15 09:10

Sandeep Tengale


1 Answers

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

like image 115
Philipp Jahoda Avatar answered Nov 15 '22 04:11

Philipp Jahoda