Zoom on chart with .Marks.OnTop = true cause red cross
Posted: Mon Aug 22, 2011 3:20 pm
Hello,
I'm using TeeChart ver. 4.0.2011.2083
Running the simple code below, and executing zoom in the right zone of chart, the chart show big red cross.
If I comment out the last line ( se2.Marks.OnTop = true; ), the zoom works fine. Why ?
private void Form1_Load(object sender, EventArgs e)
{
Steema.TeeChart.Styles.FastLine se1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
se1.FillSampleValues(100);
Steema.TeeChart.Styles.Points se2 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
se2.Add(se1.XValues[1], se1.YValues[1]);
se2.Add(se1.XValues[10], se1.YValues[10]);
se2.Add(se1.XValues[20], se1.YValues[20]);
se2.Add(se1.XValues[50], se1.YValues[50]);
se2.Marks.Style= Steema.TeeChart.Styles.MarksStyles.XValue;
se2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
se2.Marks.Visible = true;
se2.Marks.Callout.Visible = false;
se2.Marks.Callout.Length = 6;
se2.Marks.Callout.Arrow.Visible = false;
se2.Marks.OnTop = true;
}
Best regards
Losvil
I'm using TeeChart ver. 4.0.2011.2083
Running the simple code below, and executing zoom in the right zone of chart, the chart show big red cross.
If I comment out the last line ( se2.Marks.OnTop = true; ), the zoom works fine. Why ?
private void Form1_Load(object sender, EventArgs e)
{
Steema.TeeChart.Styles.FastLine se1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
se1.FillSampleValues(100);
Steema.TeeChart.Styles.Points se2 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
se2.Add(se1.XValues[1], se1.YValues[1]);
se2.Add(se1.XValues[10], se1.YValues[10]);
se2.Add(se1.XValues[20], se1.YValues[20]);
se2.Add(se1.XValues[50], se1.YValues[50]);
se2.Marks.Style= Steema.TeeChart.Styles.MarksStyles.XValue;
se2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
se2.Marks.Visible = true;
se2.Marks.Callout.Visible = false;
se2.Marks.Callout.Length = 6;
se2.Marks.Callout.Arrow.Visible = false;
se2.Marks.OnTop = true;
}
Best regards
Losvil