JusticeOfHeaven
JusticeOfHeaven

Reputation: 15

MPAndroidChart Legend labels invisible

I am using the MPAndroidChart library, it will automatically generate legend labels, then I used chart.getLegend().setEnable(false), it all invisible. How can I do to let some of the labels invisible?

Upvotes: 1

Views: 962

Answers (1)

remya thekkuvettil
remya thekkuvettil

Reputation: 798

LineDataSet can conrtol individual Legends.

LineDataSet lineDataSet = new LineDataSet(entryList, "FirstLegend");

Inorder to make the legend label invisible , use the below code

lineDataSet.setLabel("");

Inorder to make the legend form invisible, use the below code

lineDataSet.setForm(Legend.LegendForm.NONE);

Upvotes: 5

Related Questions