Bringing different series to front question
Bringing different series to front question
Hi, I've got a chart that will have up to 5 different series plotted on it. How do I bring different series to the front so I can see them without being hidden behind? Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi JRB,
You can only change a series ZOrder using TChart.Series.Exchange(int32 series1, int32 serise2) method.
You can also set the same ZOrder for several series doing something like this:
You can only change a series ZOrder using TChart.Series.Exchange(int32 series1, int32 serise2) method.
You can also set the same ZOrder for several series doing something like this:
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
Steema.TeeChart.Styles.Line line1= new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.FillSampleValues();
line1.ZOrder = i % 3;
}
}
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 |
Re: Bringing different series to front question
Hi, I attempted to change the ZOrder to fix the layer of my line graphs, but it doesn't appear to work properly.
Basically, when I click to focus on a specific graph, the following code is executed:
Is there an easier way than using the .Exchange method since I have 8 or more lines and never know what the current line order is. A simple line1.BringToFront() would be a VERY handy method.
Basically, when I click to focus on a specific graph, the following code is executed:
Code: Select all
case 0:
line1.ZOrder = 1;
line2.ZOrder = 0;
break;
case 1:
line1.ZOrder = 0;
line2.ZOrder = 1;
break;
Re: Bringing different series to front question
Hello LibDundas,
I couldn't reproduce your problem. Please, you could send us a simple project, because we can try to solve the problem here.
Thanks,
I couldn't reproduce your problem. Please, you could send us a simple project, because we can try to solve the problem here.
Thanks,
Best Regards,
Sandra Pazos / 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 |
Re: Bringing different series to front question
Hi Sandra, I uploaded a zip file (DragPoint_FlatLine.zip) on Dec 7 for some other questions I posted. In that example, when you click the "Line 1" and "Line 2" buttons, it will attempt to set the line Zorder, but you can see that the blue line never goes to the back.
Thanks!
Thanks!
Re: Bringing different series to front question
Hello LibDundas,
I inform that is not possible do ZOrder using FastLine series as explain in this thread. I recommend that if you would do ZOrder use a Line Series as explain in the thread.
Thanks,
I inform that is not possible do ZOrder using FastLine series as explain in this thread. I recommend that if you would do ZOrder use a Line Series as explain in the thread.
Thanks,
Best Regards,
Sandra Pazos / 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 |