Index

From: Christopher Ireland
Subject: Re: Axis title and axis dateformats and a request
Date: Fri, 30 Apr 2004 11:13:09 +0200
Newsgroup: steema.public.teechart6.activex  

Hi --

Try:

Private Sub Form_Load()
Dim Count
Dim Start, mEnd
With TChart1
.Aspect.View3D = False
.AddSeries scLine

Start = Now
mEnd = Start + 0.5
For i = Start To mEnd Step 0.1
Count = Count + 1
.Series(0).AddXY Count, i, "", clTeeColor
Next i

.Series(0).YValues.DateTime = True
.Axis.Left.Labels.DateTimeFormat = "hh:mm:ss"

.Tools.Add tcAnnotate
.Tools.Items(0).asAnnotation.Shape.CustomPosition = True
.Tools.Items(0).asAnnotation.Text = "Left Axis Label"
.Tools.Items(0).asAnnotation.Shape.Transparent = True

.Environment.InternalRepaint
.Tools.Items(0).asAnnotation.Shape.Top = .Axis.Top.Position - 25
.Tools.Items(0).asAnnotation.Shape.Left = .Axis.Left.Position - 70
End With
End Sub


--
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."

"Newsgroups" <"fredrik.palss??????????? wrote in message
news:qQYZUWRLEHA.2192@TEEPC.Steema.local...
> Hi,
>
> I'd like to have a left axis title that displays above the axis, with a
> rotation of 0 degrees (and maybe an bottom axis title to the right of the
> bottom axis)
>
> Like this:
>
> Duration (hours)
> ^
> /|
> |
> | *
> | *
> | *
> +------------------------> Car category
>
>
> Also I noticed that often when using datetime values (and sometimes large
> numbers) on the y-axis, the axis title and the axis labels "merge", this
> doesn't look good.
>
> I also have a request:
>
> It would be nice to be able to display durations on an axis (datetime, but
> without the datepart). 26 hours and 7 minutes and 37 seconds could look
> something like:
>
> 01 02:07:37
>
> Maby this is possible to acheive with custoom labels replacing the ticks?
> Haven't found a way yet though.
>