Series output order

TeeChart for ActiveX, COM and ASP
Post Reply
nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Series output order

Post by nefis » Thu Feb 12, 2004 9:42 am

Hello,
i'd like to use SeriesShape to draw a rectangle on chart. Unfortunately, the rectangle is drawn OVER existing lines. Are there ways to draw a shape UNDER all other lines on chart. Is there any way to control the output order?

nefis

nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Post by nefis » Thu Feb 12, 2004 10:19 am

i mean any way except using ExchangeSeries function

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Feb 12, 2004 11:39 am

Hi nefis,

the only way around this that I know of is using the ExchangeSeries method as you said.

nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Post by nefis » Thu Feb 12, 2004 1:34 pm

The problem with ExchangeSeries is that it does change series ID. so to use it one should update all IDs. which is in my case too hard to do

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Feb 12, 2004 3:12 pm

Hi,

you can always identify the Series using something like the following :

Code: Select all

    Dim Ser1 As ISeries
    Set Ser1 = TChart1.Series(1)
    Ser1.FillSampleValues (10)
    Ser1.Pen.Color = vbBlue

nefis
Newbie
Newbie
Posts: 62
Joined: Wed Oct 22, 2003 4:00 am
Location: chicago

Post by nefis » Thu Feb 12, 2004 4:10 pm

do you mean the series switching, deleting will not lost references to a series ?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri Feb 13, 2004 12:04 pm

Hi Nefis,
i'd like to use SeriesShape to draw a rectangle on chart. Unfortunately, the rectangle is drawn OVER existing lines. Are there ways to draw a shape UNDER all other lines on chart. Is there any way to control the output order?
If you don't want to use ExchangeSeries than have a look at the example in the TeeChart AXv6 Feature Demo under:
Welcome -> Previous version -> New Features -> Chart -> Events -> OnBeforeDrawChart.

You can draw a rectangle using the Canvas drawing methods.
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/

Post Reply