Page 1 of 1

Point size

Posted: Wed Nov 01, 2006 11:24 am
by 9524558
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

Posted: Thu Nov 02, 2006 11:41 am
by narcis
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

Posted: Fri Nov 03, 2006 5:55 am
by 9524558
It works, you're an angel :D , thank you very much.

best regards

Andras