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
Chart Marking Overlapped
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 :
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
Pep Jorge
http://support.steema.com
http://support.steema.com