I am trying to move marks in a serie created in runtime but I can not get it to work. Please find code below.
Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
Steema.TeeChart.Styles.Points pie1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
tChart1.Aspect.View3D = false;
pie1.FillSampleValues(20);
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();
}