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
Serial default display is from left to right, how to set fro
-
- Newbie
- Posts: 9
- Joined: Fri Jan 29, 2010 12:00 am
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Serial default display is from left to right, how to set fro
Hello,
yes, I think you can achieve what you want with code similar to this:
which gives you this chart:
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;
}
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 |
-
- Newbie
- Posts: 9
- Joined: Fri Jan 29, 2010 12:00 am
Re: Serial default display is from left to right, how to set fro
I tested it successfully, thank you very much.