Page 1 of 1

Set ColorBandTool StartValue and EndValue by code

Posted: Thu Jun 17, 2004 10:04 am
by 9336040
I wish to set ColorBandTool StartValue and EndValue by code with custom
Axis(vertical,automatic=true).
for example:
ChartTool1.StartValue:=Chart1.CustomAxes[0].Maximum;
ChartTool1.EndValue:=Chart1.CustomAxes[0].Minimum;
Which event of chart can be used for this code ? Chart1AfterDraw ?

And if can I use 100%/0% to set ChartTool1.StartValue,EndValue in stead axis max/min value?

Posted: Thu Jun 17, 2004 3:01 pm
by 8574221
ChartTool1.StartValue:=Chart1.CustomAxes[0].Maximum;
ChartTool1.EndValue:=Chart1.CustomAxes[0].Minimum;
Which event of chart can be used for this code ? Chart1AfterDraw ?
I use Chart1.BeforeDrawAxes for axis relevant actions

regards
Martin