Hi,
When I add two series to the chart. The series overlap.
Now, the top series is the second series,but,
I want the top series is the first series.
Have any method to change the order of series?
Series overlap.
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Re: Series overlap.
Hello Chris.CHWU,
Sure, you can use the Exchange() method, e.g.Chris.CHWU wrote: When I add two series to the chart. The series overlap.
Now, the top series is the second series,but,
I want the top series is the first series.
Have any method to change the order of series?
Code: Select all
public Form3()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Series.Add(typeof(Line));
tChart1.Series.Add(typeof(Bar));
tChart1[0].FillSampleValues();
tChart1[1].FillSampleValues();
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.Series.Exchange(0, 1);
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/