Question

Using Microsoft Chart Controls, is it possible to be able to remove a series from a chart by clicking on it in the legend, or do I have to create a separate control for that?

Était-ce utile?

La solution

In the event handler call the HitTest and if it is Legenditem remove the series.

Autres conseils

Handling the click event may solve the problem but leads to a confusing UI. You may need a special control with some checkbox beside each series. MSChartWrapper may solve this problem.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top