How Do I set values in the Legend?
Posted: Wed Jun 03, 2009 9:26 am
Hi Support
Ive set up a simple application. (Im using Visual C# and Visual Studio).
Ive added a TeeChart control and a button to a windows form.
When the user presses the button the following code is run.
Steema.TeeChart.Styles.Line Line1;
Line1 = new Steema.TeeChart.Styles.Line();
tChart1.Series.Add(Line1);
Line1.FillSampleValues(20);
This adds a line to the chart. Ive 2 questions.
1. Why when there is only 1 line displayed is there 2 lines (Line1, Line2) shown in the Legend.
2. How do I set the name in the legend? ie. When I click the button to add the new line how do I set the name in the legend to lets say "Rupert"?
Thanks.
Ive set up a simple application. (Im using Visual C# and Visual Studio).
Ive added a TeeChart control and a button to a windows form.
When the user presses the button the following code is run.
Steema.TeeChart.Styles.Line Line1;
Line1 = new Steema.TeeChart.Styles.Line();
tChart1.Series.Add(Line1);
Line1.FillSampleValues(20);
This adds a line to the chart. Ive 2 questions.
1. Why when there is only 1 line displayed is there 2 lines (Line1, Line2) shown in the Legend.
2. How do I set the name in the legend? ie. When I click the button to add the new line how do I set the name in the legend to lets say "Rupert"?
Thanks.