>Can you tell me what properties or methods that can avoid Mark >overlapping ?
TeeChart for Net v1 has a number of algorithmns that were designed to stop TeeChart SeriesMark overlap. If you aren't happy with them, you can always use the DragMarks Tool or move marks around with code similar to this:
Code: Select all
private void Form1_Load(object sender, System.EventArgs e) {
tChart1.Aspect.View3D = false;
pie1.FillSampleValues(20);
pie1.Circled = true;
Bitmap b=tChart1.Bitmap;
Steema.TeeChart.Styles.SeriesMarks.Position mp3 =
pie1.Marks.Positions[3];
mp3.Custom=true;
mp3.ArrowTo.X=mp3.ArrowTo.X-50;
mp3.LeftTop.X=mp3.LeftTop.X-50;
pie1.Marks.Positions[5].Custom=true;
pie1.Marks.Positions[5].ArrowTo.Y=pie1.Marks.Positions[5].ArrowTo.Y+50;
pie1.Marks.Positions[5].LeftTop.Y=pie1.Marks.Positions[5].LeftTop.Y+50;
tChart1.Refresh();
}
No, this feature is not yet available. The only way around this is creating your custom legend using the Canvas thechniques. You can see one example of this in the TeeChart for Net v1 Demo Features project under :
All Features -> Welcome ! -> Miscellaneous -> Legend -> Drawing more text
Josep Lluis Jorge
http://support.steema.com