itamar8910
itamar8910

Reputation: 305

How to hide values from chart in MPAndroidChart?

I am using MPAndroidChart and couldn't figure out how to hide the values on the points in my LineChart.

Screen shot:

enter image description here

Have you got any suggestion on how to do it?

Thanks!

Upvotes: 3

Views: 3723

Answers (3)

Eugene P.
Eugene P.

Reputation: 1036

Another way to do it for all datasets chart.setMaxVisibleValueCount(0)

Upvotes: 0

Raj
Raj

Reputation: 477

hide value for more than one data set

    Linedata data= new LineData(dataSets);
    data.setDrawValues(false);

hide single data set

    datasetname.setDrawValues(false);

Upvotes: 2

Philipp Jahoda
Philipp Jahoda

Reputation: 51411

You can hide them by calling dataSet.setDrawValues(false) on your LineDataSet object.

Upvotes: 6

Related Questions