I'm using TeeChart Pro v2 for Visual Studio .NET
Code: Select all
chart.Legend.CheckBoxes = true;
Please response me ASAP!
Thanks
Code: Select all
chart.Legend.CheckBoxes = true;
Code: Select all
tChart1[0].Active = !tChart1[0].Active;
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 |
Code: Select all
public Form1()
{
InitializeComponent();
for (int i = 0; i < 5; i++)
{
tChart1.Series.Add(new Steema.TeeChart.Styles.Line());
tChart1[i].FillSampleValues();
if (i%2==0)
{
tChart1[i].ShowInLegend = false;
}
}
tChart1.ClickLegend += new MouseEventHandler(tChart1_ClickLegend);
}
void tChart1_ClickLegend(object sender, MouseEventArgs e)
{
int index = tChart1.Legend.Clicked(e.X, e.Y);
if (index != -1)
{
for (int j = 0; j < tChart1.Series.Count; j++)
{
if ((tChart1[j].ShowInLegend) && (tChart1.Legend.Items[index].Text ==tChart1[j].Title))
{
tChart1.Header.Text = "Series selected: " + j.ToString();
}
}
}
}
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 |