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
Zoom on chart with .Marks.OnTop = true cause red cross
Re: Zoom on chart with .Marks.OnTop = true cause red cross
Hello losvil,
I have made simple code that works fine for me:
Can you please, check if previous code works as you want?
I hope will helps.
Thanks,
I have made simple code that works fine for me:
Code: Select all
private void InitializeChart()
{
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.DataSource = se1;
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.Visible = true;
for (int i = 0; i < se2.Count; i++)
{
if (i != 1 && i != 10 && i != 20 && i != 50)
{
se2.SetNull(i);
}
}
se2.Marks.OnTop = true;
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Zoom on chart with .Marks.OnTop = true cause red cross
Hello Sandra,
Yes, your code works fine with zoom, but if I pan the series (only right to left) out of the chart, the red cross appears.
Best regards
losvil
Yes, your code works fine with zoom, but if I pan the series (only right to left) out of the chart, the red cross appears.
Best regards
losvil
Re: Zoom on chart with .Marks.OnTop = true cause red cross
Hello losvil,
You are right. I have added your request in the bug list report with number [TF02015709]. We will try to fix it for next maintenance releases of TeeChart.Net.
Thanks,
You are right. I have added your request in the bug list report with number [TF02015709]. We will try to fix it for next maintenance releases of TeeChart.Net.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Zoom on chart with .Marks.OnTop = true cause red cross
Ok, Thanks
Best regards
losvil
Best regards
losvil