Home > OS >  MPAndroidChart LineChart without text next to every value
MPAndroidChart LineChart without text next to every value

Time:05-31

I am using the Linechart from MPAndroidChart.

 List<Entry> entries = new ArrayList<Entry>();
 
 ..... /* filling the values */

 LineDataSet dataSet = new LineDataSet(entries, "my chart"); 
 dataSet.setColor(Color.RED); 

Here you can see the result

enter image description here

How can I get rid of the text (11.109, 11.008 ... ) next to every single entry?. I just want to see every single point without the value.

Regards

Michael

CodePudding user response:

If you want to hide the values, you can use

dataSet.setDrawValues(false);

to turn them all off. Have a look at the dataset base class documentation for some more details and other options, and the specific LineDataSet commands.

  • Related