bugs with zooming

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
noaksey
Newbie
Newbie
Posts: 55
Joined: Wed May 23, 2007 12:00 am

bugs with zooming

Post by noaksey » Thu Apr 16, 2009 8:31 am

Hi,

I've attached the code i'm using at the very bottom.

The first bug i've noticed is when you start zooming; if you start zooming in the actual chart area (so inside all the axes) and drag the box outside of the bottom right of the axes, if you do this about 3 times it should crash with an "IndexOutOfRange" exception.

The second bug i've found is, if you restart the program, and then click 'button1' (which basically adds a Point series with a Log Right axis), and then attempt to zoom, it crashes with the same exception

Can you manage to reproduce these, or am I just doing something wrong?!

Regards,

Chris.

Code: Select all

        // added a Tchart to a form, and just added a button.
        Points p;
        Line l;
        public Form1()
        {
            InitializeComponent();

            l = new Line(tChart1.Chart) { ShowInLegend = false };

            l.FillSampleValues();

            tChart1.Aspect.View3D = false;
            tChart1.Panel.MarginRight = 6;
            tChart1.Panel.MarginBottom = 6;
        }


        private void button1_Click(object sender, EventArgs e)
        {
            p = new Steema.TeeChart.Styles.Points(tChart1.Chart)
            {
                VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right,
                ShowInLegend = false,
                Color = Color.Black,
                Pointer =
                {
                    Style = Steema.TeeChart.Styles.PointerStyles.Diamond,
                    HorizSize = 2,
                    VertSize = 2
                }
            };

            tChart1.Axes.Right.Labels.Exponent = true;
            tChart1.Axes.Right.Logarithmic = true;
            tChart1.Axes.Right.MaximumOffset = 5;
            tChart1.Axes.Right.MinimumOffset = 10;
            tChart1.Axes.Right.AutomaticMinimum = false;
            tChart1.Axes.Right.Minimum = 1;

            p.Add(0, 100);
            p.Add(1, 90000);
            p.Add(2, 90000);
            p.Add(3, 90000);
            p.Add(4, 90000);
            p.Add(5, 90000);
            p.Add(6, 90000);
            p.Add(7, 100000);
            p.Add(7, 1000000);
        }

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

Post by Sandra » Thu Apr 16, 2009 9:21 am

Hello noaksey,

We couldn't reproduce your issue here with last version of TeeChartFor .NET version 3.

Please, could you say which version of TeeChartFor .NET you use in this moment?

I recomend that you download last version of TeeChartfor .NET version 3, and check that this problem repeats in this version or application works fine. If this, still appears in the last version, could you send us a simple example project we can run "as-is" to reproduce the problem here?You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page. And explains exactly what we must do for reproduce the issue.

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

noaksey
Newbie
Newbie
Posts: 55
Joined: Wed May 23, 2007 12:00 am

Post by noaksey » Thu Apr 16, 2009 11:25 am

I think the newest version has fixed it; I was using the one released before the latest.

Thanks Sandra.

Chris

Post Reply