Answer: 
If you are using MPAndroidChart and still using setDrawCubic() method which is deprecated, the solution is to use :
public enum Mode {
    LINEAR,
    STEPPED,
    CUBIC_BEZIER,
    HORIZONTAL_BEZIER
 }
Which is defined in the LineDataSet.java class in the library.
mySet.setMode(LineDataSet.Mode.CUBIC_BEZIER);
So next time dont use mySet.setDrawCubic(true); just use the above and the desired enum value.
Now you have to use:
dataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With