Page 1 of 1

bugs with zooming

Posted: Thu Apr 16, 2009 8:31 am
by 14045263
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);
        }

Posted: Thu Apr 16, 2009 9:21 am
by 10050769
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,

Posted: Thu Apr 16, 2009 11:25 am
by 14045263
I think the newest version has fixed it; I was using the one released before the latest.

Thanks Sandra.

Chris