Hi,
I plot multiple series which can be turned on and off through the checkboxes in the associated legend. Works nicely.
How can I enable/disable particular checkboxes in the legend to prevent the user from un-checking or checking a particular series according to
some criteria?
Thanks,
fano
How to En-Disabling checkboxes in the legend
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi fano,
Just set the series you want ShowInLegend property to false as shown here:
Just set the series you want ShowInLegend property to false as shown here:
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
line1.FillSampleValues();
line2.FillSampleValues();
line3.FillSampleValues();
line2.ShowInLegend = false;
tChart1.Legend.CheckBoxes = true;
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |