alternating color bands

TeeChart for ActiveX, COM and ASP
Post Reply
norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

alternating color bands

Post by norad » Fri Mar 05, 2004 10:40 am

Hi all

Is there a way to draw alternating color bands in the canvas, automatically? (without adding 10 or 15 or 20 band tools)

See the following for example:

http://www.omnifinance.gr/stock.asp?sym ... mode=chart

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

Post by Pep » Mon Mar 08, 2004 11:09 am

Hi norad,

this can be done with the Grid Band tool, which is available in the TeeChart Pro AX v6.

norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

Post by norad » Tue Mar 09, 2004 12:03 pm

I have used the follwing code so as to have 2 different colors on my grid...

With Chart
.Tools.Add tcGridBand
With .Tools.Items(0).asGridBand
.Axis = Chart.Axis.Left
.Band1.Color = vbGreen
.Band2.Color = vbBlue
End With
End With


But it does not seem to work. Am i forgeting something?

The page in which the above is running produces the following error

Active Server Pages error 'ASP 0115'

Unexpected error

/charts/DAILY.asp

A trappable error (C0000005) occurred in an external object. The script cannot continue running.


Any help would be much appreciated

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

Post by Pep » Tue Mar 09, 2004 1:45 pm

Hi norad,

yes, you're correct, I get the same results using it in one ASP page. It seems to be a bug. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance release. I've not found any workaround, if I find it I'll let you know.

norad
Newbie
Newbie
Posts: 13
Joined: Fri Nov 15, 2002 12:00 am
Location: Athens, Greece
Contact:

Post by norad » Tue Mar 09, 2004 2:17 pm

Thanks for your prompt reply

norad

Post Reply