Venu Bothsa Venu Bothsa - 2 months ago 18
Java Question

How to hide a line graph in Line chart

I am showing two line graphs using MPChart library and i'm trying to hide a line graph on button click.

Can any one suggest me how to hide a line graph from Line chart on button click. enter image description here

Answer

You need to use the method clear() to delete all the information of your chart, and after that you need to use the method invalidate() to refresh the entire chart.

The MPChart documentation are here: MPChart Documentation

Comments