Page 1 of 1

inverting the bottom axis line

Posted: Thu Jan 28, 2016 11:11 am
by 9526439
Hi Stemma support,
We are attaching a demo in which we are using line series with stair property to true. If we click on Inverted button, then chart bottom axis got inverted. So with respected to the axis line series must also be changed (or inverted), but it does not invert line respectively.

As shown in image below after inverting axis line changed but this is not correct.
img_2.png
But after inverting it shows like this that is not correct.
img_2.png (15.97 KiB) Viewed 8039 times
After inverting axis it must be like this
img_3.png
it must be like this
img_3.png (7.51 KiB) Viewed 8037 times
Please provide any solution for the same
Thanks in advance.

inverting the bottom axis line

Posted: Sat Jan 30, 2016 5:41 am
by 9526439
Hi Steema Support,
we are waiting for your Reply.
Thanks .

Re: inverting the bottom axis line

Posted: Mon Feb 01, 2016 11:36 am
by Christopher
amol wrote: As shown in image below after inverting axis line changed but this is not correct.
It is one possibility. The other is to use code similar to this:

Code: Select all

    Line line1;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      line1 = new Line(tChart1.Chart);

      line1.Add(0, 500);
      line1.Add(500, 0);
      line1.Add(600, 0);
      line1.Stairs = true;
      tChart1.Axes.Left.MaximumOffset = 20;
      tChart1.Axes.Left.MinimumOffset = 20;
      tChart1.Axes.Bottom.MaximumOffset = 20;
      tChart1.Axes.Bottom.MinimumOffset = 20;
    }

    private void button4_Click(object sender, EventArgs e)
    {
      tChart1.Axes.Bottom.Inverted = !tChart1.Axes.Bottom.Inverted;
      line1.InvertedStairs = !line1.InvertedStairs;
    }