Bringing series to front

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Marius
Newbie
Newbie
Posts: 44
Joined: Thu Jan 31, 2008 12:00 am

Bringing series to front

Post by Marius » Tue Feb 19, 2008 12:41 pm

Is there any method in the API for bringing the points of a selected Series to the front of the view (i.e. in front of the other points)? I tried setDepth() and setZOrder() (the latter I found were only for 3D-charts), but with no luck.

Thanks in advance
M

Marc
Site Admin
Site Admin
Posts: 1258
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Feb 20, 2008 11:42 am

Hello M,

You can bring Series to the front by using the exchange method.

eg.

Code: Select all

tChart.getSeries().exchange(0, 1);
//where the args are the index locations of the Series to be 
//exchanged in the SeriesList
Regards,
Marc Meumann
Steema Support

Marius
Newbie
Newbie
Posts: 44
Joined: Thu Jan 31, 2008 12:00 am

Post by Marius » Wed Feb 20, 2008 2:50 pm

Thank you very much, that was the trick!

Marius

Post Reply