Page 1 of 1

alternating color bands

Posted: Fri Mar 05, 2004 10:40 am
by 6925334
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

Posted: Mon Mar 08, 2004 11:09 am
by Pep
Hi norad,

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

Posted: Tue Mar 09, 2004 12:03 pm
by 6925334
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

Posted: Tue Mar 09, 2004 1:45 pm
by Pep
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.

Posted: Tue Mar 09, 2004 2:17 pm
by 6925334
Thanks for your prompt reply

norad