Toggle series


Is there any build-in functionality for toggling a series (showing/hiding it) by clicking it in the legend?

If not, any quick hints on how to best implement this would be appreciated. Thanks.


This isn’t “built-in” so to speak but it is entirely possible.

You can hide a series using the hidden property on SChartSeries. Then, you simply need to pick up tap gesture on your legend & react to them.

Stuart made a great blog post about programatically controlling your pie chart slices when your user taps your legend, the tap gesture recognizer part of this might help you!



Thanks appreciated.