سؤال

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?

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top