Page 1 of 1

Axis.MaximumOffset is still incorrect.

Posted: Fri Sep 24, 2010 2:58 pm
by 15657281
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

Re: Axis.MaximumOffset is still incorrect.

Posted: Mon Sep 27, 2010 10:37 am
by 10050769
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,