Mpandroidchart: How to remove the small cube which appears at the bottom of the chart showing what the line represents?

Created on 15 Sep 2016  路  5Comments  路  Source: PhilJay/MPAndroidChart

screenshot

You can find a small square box at the bottom the line graph (Cyan colored Box - below Jan). I do not require this representation. How to hide this box? Is it possible ?

Most helpful comment

I think it's a legend showing. Try:
chart.getLegend().setEnabled(false);

All 5 comments

I think it's a legend showing. Try:
chart.getLegend().setEnabled(false);

Yes its working Thanks :+1:

No problem :)

@joanna-zolopa How to set Yaxis Labels for Line chart in version-3.0. beta?
Previously when i was using version 2.3.3 MPChartLibrary the Yaxis Labels were set using following syntax:
ArrayList labels = new ArrayList<>();
LineData data = new LineData(labels, dataSet); -- > this api is not supported in version 3.0 beta.

So how to set yaxis labels?

Do you have any idea?

Works like a charm. Thanks.

Was this page helpful?
0 / 5 - 0 ratings