Answer: If you use MPAndroidChart and still use a method setDrawCubic()that is deprecated, the solution should use:
public enum Mode {
LINEAR,
STEPPED,
CUBIC_BEZIER,
HORIZONTAL_BEZIER
}
Defined in the LineDataSet.java class in the library.
mySet.setMode(LineDataSet.Mode.CUBIC_BEZIER);
So next time do not use mySet.setDrawCubic(true);, just use the above and the desired value enum.
source
share