Serial default display is from left to right, how to set fro

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mr.Hu_NotProSupport
Newbie
Newbie
Posts: 9
Joined: Fri Jan 29, 2010 12:00 am

Serial default display is from left to right, how to set fro

Post by Mr.Hu_NotProSupport » Tue Oct 04, 2016 3:16 am

YLline As New Steema.TeeChart.Styles.Line Dim ()
Axis3 As New Steema.TeeChart.Axis Dim (tChart.Chart)
Axis3.Maximum = 40
YLline.CustomHorizAxis = Axis3
YLline.FillSampleValues (520)
YLline randomly generated 520 points, when the set of Axis3 up to 40 points, TeeChar default display of the 0-39 of the YLline of these 40 points, how to set up the figure when the display is the last forty points that is (481--520)
Welcome advice, thank you

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Serial default display is from left to right, how to set fro

Post by Christopher » Tue Oct 04, 2016 8:33 am

Hello,

yes, I think you can achieve what you want with code similar to this:

Code: Select all

    private void InitializeChart()
    {
      Line yLine = new Line(tChart1.Chart);
      Axis axis3 = new Axis(tChart1.Chart);
      tChart1.Axes.Custom.Add(axis3);

      //axis3.Maximum = 40;
      //axis3.AutomaticMaximum = false;
      axis3.SetMinMax(481, 520);

      axis3.Horizontal = true;

      yLine.CustomHorizAxis = axis3;
      yLine.FillSampleValues(520);

      tChart1.Panel.MarginBottom = 20;
    }
which gives you this chart:
636111729235891358.jpg
636111729235891358.jpg (73.76 KiB) Viewed 9702 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Mr.Hu_NotProSupport
Newbie
Newbie
Posts: 9
Joined: Fri Jan 29, 2010 12:00 am

Re: Serial default display is from left to right, how to set fro

Post by Mr.Hu_NotProSupport » Tue Oct 04, 2016 11:50 am

I tested it successfully, thank you very much.

Post Reply