Page 1 of 1
Series output order
Posted: Thu Feb 12, 2004 9:42 am
by 9079459
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
Posted: Thu Feb 12, 2004 10:19 am
by 9079459
i mean any way except using ExchangeSeries function
Posted: Thu Feb 12, 2004 11:39 am
by Pep
Hi nefis,
the only way around this that I know of is using the ExchangeSeries method as you said.
Posted: Thu Feb 12, 2004 1:34 pm
by 9079459
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
Posted: Thu Feb 12, 2004 3:12 pm
by Pep
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
Posted: Thu Feb 12, 2004 4:10 pm
by 9079459
do you mean the series switching, deleting will not lost references to a series ?
Posted: Fri Feb 13, 2004 12:04 pm
by Chris
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.