inverting the bottom axis line

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

inverting the bottom axis line

Post by amol » Thu Jan 28, 2016 11:11 am

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 7077 times
After inverting axis it must be like this
img_3.png
it must be like this
img_3.png (7.51 KiB) Viewed 7075 times
Please provide any solution for the same
Thanks in advance.
Attachments
TechartDemo.rar
Demo
(54.58 KiB) Downloaded 735 times

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

inverting the bottom axis line

Post by amol » Sat Jan 30, 2016 5:41 am

Hi Steema Support,
we are waiting for your Reply.
Thanks .

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

Re: inverting the bottom axis line

Post by Christopher » Mon Feb 01, 2016 11:36 am

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;
    }
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

Post Reply