Chart Marking Overlapped

TeeChart for ActiveX, COM and ASP
Post Reply
Cliven
Newbie
Newbie
Posts: 18
Joined: Fri May 14, 2004 4:00 am
Location: Malaysia

Chart Marking Overlapped

Post by Cliven » Fri Oct 28, 2005 3:03 am

hi there,

I am using Teechart Pro ActiveX Control v5 on vb6,
what happen is that, when I tried to draw a pie chart,
and set the chart marking visible to true,
the chart marking overlapped due to the small slices of
series items.

Further more, is there a way to set the decimal point appear in the
legend?

Is there a way to work around?


Best Regards,
Ken

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Nov 02, 2005 8:27 am

Hi Ken,

to solve the marks overlapping you could customize the Marks position, using similar code to the following, it also shows how to format the Values which will appear in the Marks and Legend :

Code: Select all

Private Sub Form_Load()
With TChart1
    .Aspect.View3D = False
    .AddSeries scPie
    For i = 0 To 5
        .Series(0).AddXY i, Rnd * 1000, "", clTeeColor
    Next i
    .Axis.Left.Minimum = 0
    .Environment.InternalRepaint
    For i = 0 To TChart1.Series(0).Count - 1
        With .Series(0).Marks.Positions.Position(i)
            .Custom = True
            .LeftTop.X = .LeftTop.X + 40
            .LeftTop.Y = .LeftTop.Y + 70
        End With
    Next i
    .Series(0).Marks.Arrow.Visible = False
    .Series(0).ValueFormat = "##.##"
End With
End Sub

Post Reply