MPAndroid Chart how to make smooth line chart

Shivam Bhalla picture Shivam Bhalla · Mar 10, 2015 · Viewed 7.7k times · Source

I am looking to use MPAndroid Chart in my application. But currently, specifying points gives a line graph with sharp edges. How do I make the transition of the graph smooth (similar to a sine-wave for example) ?

Thanks !

Answer

ZhangTianning picture ZhangTianning · Aug 24, 2016

MPAndroidChart:v3.0.0-beta1:

lineDataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);