What is the replacement for setDrawCubic () that is deprecated for MPAndroidChart?

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.

+4
source share
1 answer

Now you should use:

dataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);
+4
source

Source: https://habr.com/ru/post/1654677/


All Articles