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.
After inverting axis it must be like this
Please provide any solution for the same
Thanks in advance.
inverting the bottom axis line
inverting the bottom axis line
- Attachments
-
- TechartDemo.rar
- Demo
- (54.58 KiB) Downloaded 812 times
inverting the bottom axis line
Hi Steema Support,
we are waiting for your Reply.
Thanks .
we are waiting for your Reply.
Thanks .
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: inverting the bottom axis line
It is one possibility. The other is to use code similar to this:amol wrote: As shown in image below after inverting axis line changed but this is not correct.
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 |