Page 1 of 1

Zoom on chart with .Marks.OnTop = true cause red cross

Posted: Mon Aug 22, 2011 3:20 pm
by 15657281
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

Re: Zoom on chart with .Marks.OnTop = true cause red cross

Posted: Wed Aug 24, 2011 11:09 am
by 10050769
Hello losvil,

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;   
        }
Can you please, check if previous code works as you want?

I hope will helps.

Thanks,

Re: Zoom on chart with .Marks.OnTop = true cause red cross

Posted: Wed Aug 24, 2011 12:44 pm
by 15657281
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

Re: Zoom on chart with .Marks.OnTop = true cause red cross

Posted: Thu Aug 25, 2011 9:59 am
by 10050769
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,

Re: Zoom on chart with .Marks.OnTop = true cause red cross

Posted: Thu Aug 25, 2011 1:19 pm
by 15657281
Ok, Thanks

Best regards
losvil