Axis.MaximumOffset is still incorrect.

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

Axis.MaximumOffset is still incorrect.

Post by losvil » Fri Sep 24, 2010 2:58 pm

Hi

I'm using TeeChart.NET ver. 4.1.2010.8043
Using a line serie with Pointer.Visible = false, the axis.MaximumOffset and axis.MinimumOffset work fine.
Using a line serie with Pointer.Visible = true, the axis.MaximumOffset and axis.MinimumOffset don't work.
The release notes of this version report that bug [TF02014628] is fixed.

Regards
losvil

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

Re: Axis.MaximumOffset is still incorrect.

Post by Sandra » Mon Sep 27, 2010 10:37 am

Hello losvil,

I could reproduce your problem and I think that is related with bug [TF02014628] but is not the same. I have added it in bug list with number [TF02015172] and we try to fix it for next maintenance releases of TeeChart .Net. At the moment you can use next workaround using SetMinMax() axes property:

Code: Select all

  private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Line series = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            series.FillSampleValues();
            series.Pointer.Visible = true;
            // Using below line works.
            tChart1.Axes.Bottom.SetMinMax(series.MinXValue(), series.MaxXValue());
            tChart1.Axes.Bottom.MinimumOffset = 50;
            tChart1.Axes.Bottom.MaximumOffset = 100;
        }
Could you please, check code if 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

Post Reply