Hi,
I want to know how many pixels for drawing a serie is available (serie "horizontal length" in pixels). At present I do it in this way:
With tChart1.axis
width=.Right.Position - .Left.Position
end with
But I don't like this solution. Isn't there a property for it?
Thanx
Chart width in pixels
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Roman,
I'm afraid there isn't .. don't forget that you can use it outside of the TeeChart events thus:But I don't like this solution. Isn't there a property for it?
Code: Select all
Private Sub Form_Load()
Dim s As String
With TChart1
.AddSeries scLine
.Series(0).FillSampleValues 20
.Environment.InternalRepaint
s = .Axis.Right.Position - .Axis.Left.Position
Label1.Caption = s
End With
End Sub
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/