Problem: We are not able to restore the user defined values in the point graph (especially for the bottom axis).
Step 1 : We plot a point graph.
Step 2: We modify the bottom axis(minimum, maximum) to user defined value.
Step 3 : We save the axis values and plot another graph (a line graph or bar graph etc)
Step 4 : We come nack to the same(Step 1) point graph again, here we restore the bottom axis values which was saved in Step 3.
Here however it assigns the values but when the graph is plotted it takes the automatic values.
The following lines are used to restore the user defined values:
tChart2.Axes.Bottom.AutoMaximum = false;
tChart2.Axes.Bottom.Maximum = SavedValue ;
tChart2.Refresh();
Help me in solving this problem
Problem - Restoring Bottom Axis
-
- Newbie
- Posts: 10
- Joined: Fri Jul 02, 2004 4:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi spacemanspiff,
It works fine for me here using the latest TeeChart for .NET v2 release and the code below. Can you please try if it works at your end and modify it so that we can reproduce the problem here? Depending on your approach you may need to use the commented SetMinMax statement.
BTW: Which TeeChart version are you using?
It works fine for me here using the latest TeeChart for .NET v2 release and the code below. Can you please try if it works at your end and modify it so that we can reproduce the problem here? Depending on your approach you may need to use the commented SetMinMax statement.
BTW: Which TeeChart version are you using?
Code: Select all
private double OldMin, OldMax;
private void button1_Click(object sender, EventArgs e)
{
tChart1.Axes.Bottom.SetMinMax(10, 20);
OldMin=tChart1.Axes.Bottom.Minimum;
OldMax=tChart1.Axes.Bottom.Maximum;
tChart1.Series.Clear();
Steema.TeeChart.Styles.Points PointSeries = new Steema.TeeChart.Styles.Points(tChart1.Chart);
PointSeries.FillSampleValues();
//tChart1.Axes.Bottom.SetMinMax(OldMin, OldMax);
}
Best Regards,
Narcís Calvet / 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: 10
- Joined: Fri Jul 02, 2004 4:00 am
- Contact:
Not Working !!!!
Hi Narcis,
We are using TeeChart ver 1.1.
We did implement your idea but without much luck.
Any other suggestions for us would be great ?
Thanks for your help.
We are using TeeChart ver 1.1.
We did implement your idea but without much luck.
Any other suggestions for us would be great ?
Thanks for your help.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi spacemanspiff,
Which TeeChart for .NET version 1 build are you using? It works fine for me here using latest build available at our Customer Download Area which is Build 1.1.2259.29262. Can you please if it works at your end?
Which TeeChart for .NET version 1 build are you using? It works fine for me here using latest build available at our Customer Download Area which is Build 1.1.2259.29262. Can you please if it works at your end?
Best Regards,
Narcís Calvet / 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 |