Page 1 of 1

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

Posted: Tue Oct 04, 2016 3:16 am
by 16055158
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

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

Posted: Tue Oct 04, 2016 8:33 am
by Christopher
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 9066 times

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

Posted: Tue Oct 04, 2016 11:50 am
by 16055158
I tested it successfully, thank you very much.