I am using MPAndroidChart library for a project of mine to integrate charts in my app. I know how to use LineCharts but I couldn't figure out a way to use the Cubic Lines feature of the LineCharts. The image below shows the kind of graph i want, please let me know how to solve this issue.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Try using something like this
lineDataSet.setDrawCubic(true);
It worked for me, here lineDataSet is your LineDataSet
instance.
Update for v3.0.0 and onwards:
lineDataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);