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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
losvil
Newbie
Newbie
Posts: 12
Joined: Mon Sep 20, 2010 12:00 am

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

Post by losvil » 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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Wed Aug 24, 2011 11:09 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

losvil
Newbie
Newbie
Posts: 12
Joined: Mon Sep 20, 2010 12:00 am

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

Post by losvil » Wed Aug 24, 2011 12:44 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Thu Aug 25, 2011 9:59 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

losvil
Newbie
Newbie
Posts: 12
Joined: Mon Sep 20, 2010 12:00 am

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

Post by losvil » Thu Aug 25, 2011 1:19 pm

Ok, Thanks

Best regards
losvil

Post Reply