6

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.

Philipp Jahoda
  • 50,880
  • 24
  • 180
  • 187
Sijan Gurung
  • 727
  • 5
  • 12

1 Answers1

5

Now you have to use:

dataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);
Philipp Jahoda
  • 50,880
  • 24
  • 180
  • 187
Ricardo
  • 2,086
  • 25
  • 35