
Index
From: Christopher Ireland
Subject: Re: Gauge Series Axis Gradient
Date: Tue, 27 Jul 2004 13:31:55 +0200
Newsgroup: steema.public.teechart6.activex
"Newsgroups" wrote in message
news:yu76w70cEHA.2548@TEEPC.Steema.local...
> Hi Chris,
>
> Thanks for your reply. Series | Circled exposes the circle on which the
> chart is placed. I'm interested in the axis found in Series | Format |
> Option. I don't know if there is anything available at run time which will
> give me gradient functionality.
>
> I've tried adding several series hoping that I could color the axis of
> each one differently, but it seems to color them all regardless of the
> series you're working with.
>
This is possible but not easy. Have a look at the following code:
Private Sub Form_Load()
Dim s As String
TeeCommander1.Chart = TChart1
With TChart1
.Axis.Left.AxisPen.Visible = False
End With
End Sub
Private Sub TChart1_OnAfterDraw()
Dim Height
With TChart1
Height = .Axis.Bottom.Position - .Axis.Top.Position
Height = Height / 2
.Canvas.Rectangle .Canvas.ChartXCenter - Height, .Axis.Top.Position,
..Canvas.ChartXCenter + Height, .Axis.Bottom.Position
End With
End Sub
This code draws a rectangle around the Gauge series and should provide all
the information you need to use ICanvas.Line (see help for details) to draw
a series of short lines describing an arc with ICanvas.Pen(s) of different
colours.
--
Best Regards,
Christopher Ireland
http://support.steema.com
"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."