Point size

TeeChart for ActiveX, COM and ASP
Post Reply
Andras
Newbie
Newbie
Posts: 40
Joined: Thu Oct 14, 2004 4:00 am
Location: Hungary

Point size

Post by Andras » Wed Nov 01, 2006 11:24 am

Dear Support

One question: Is it possible to change the point size (either vertical, horizontal, or both) of an individual point within a point series, or only the point size of the whole series (i.e. all points) can be changed? For example: let's say I have a point series with 12 points in it, and I would like to change the horizontal/vertical size of the 5th point. Is this possible?

Tx in advance,

Andras

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 02, 2006 11:41 am

Hi Andras,

Yes, you can do something like the code below in the OnGetSeriesPointerStyle event:

Code: Select all

Private Sub TChart1_OnGetSeriesPointerStyle(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, AStyle As TeeChart.EPointerStyle)
    With TChart1.Series(SeriesIndex).asPoint.Pointer
        If ValueIndex = 4 Then
            AStyle = psCircle
            .VerticalSize = 10
            .HorizontalSize = 10
        Else
            AStyle = psRectangle
            .VerticalSize = 2
            .HorizontalSize = 2
        End If
    End With
End Sub
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Andras
Newbie
Newbie
Posts: 40
Joined: Thu Oct 14, 2004 4:00 am
Location: Hungary

Post by Andras » Fri Nov 03, 2006 5:55 am

It works, you're an angel :D , thank you very much.

best regards

Andras

Post Reply