Question about MinAxisIncrement...

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Bradley
Newbie
Newbie
Posts: 4
Joined: Fri Aug 19, 2005 4:00 am

Question about MinAxisIncrement...

Post by Bradley » Thu May 14, 2009 1:01 pm

I have data that ranges around 1E-15, but it appears that I can not set the MinAxisIncrement property to less than 1E-12. Everything seems to work as expected with settings less than 1E-12... I would like the minimum to be at least 1E-18...

Thanks for any assistance,
Bradley

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu May 14, 2009 2:51 pm

Hi Bradley,

It works fine for me here using code snippet below with latest TeeChart for .NET v3 release available at the client area. Which is the exact TeeChart build you are using? Can you please check if last version works fine? Can you modify code below so that we can reproduce the issue here?

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;
			tChart1.Legend.Visible = false;
			tChart1.Dock = DockStyle.Fill;

			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);

			Random y = new Random();

			for (int i = 0; i < 10; i++)
			{
				line1.Add((1E-18) * i, y.Next());
			}

			tChart1.Axes.Bottom.Increment = 1E-15;
			tChart1.Axes.Bottom.MinAxisIncrement = 1E-18;

			tChart1.Axes.Bottom.Labels.ValueFormat = "0E-00";
		}
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Bradley
Newbie
Newbie
Posts: 4
Joined: Fri Aug 19, 2005 4:00 am

Post by Bradley » Thu May 14, 2009 2:54 pm

I am using v2.0.3203 ... I will update to the latest version. Thank you.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu May 14, 2009 3:03 pm

Hi Bradley,

Sorry, but I found that working code is this:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;
			tChart1.Legend.Visible = false;
			tChart1.Dock = DockStyle.Fill;

			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);

			Random y = new Random();

			for (int i = 0; i < 10; i++)
			{
				line1.Add((1E-18) * i, y.Next());
			}

			//tChart1.Axes.Bottom.Increment = 1E-15;
			//tChart1.Axes.Bottom.MinAxisIncrement = 1E-18;

			tChart1.Axes.Bottom.Labels.ValueFormat = "0E-00";
		}
I've also checked it fails in v2 but works fine in v3. Also notice that latest version available is v2009 (v4) where this also works fine.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Bradley
Newbie
Newbie
Posts: 4
Joined: Fri Aug 19, 2005 4:00 am

Post by Bradley » Thu May 14, 2009 3:56 pm

Hi Narcis,

Thank you very much for your fast response to this. I am somewhat locked to .NET 2.0 because of a LabView limitation. Does this mean that the only way I can "fix" this is to move to a newer TChart version?

Thanks again,
Bradley

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 15, 2009 7:02 am

Hi Bradley,

Considering current TeeChart version is v2009 (v4, two versions after TeeChart for .NET v2) it is most unlikely that this is fixed in v2. Anyway, please notice that TeeChart for .NET 2009 also includes a .NET Framework 2.0 build.

Before upgrading you may also be interested in checking the fully functional evaluation version available here:

http://www.steema.com/downloads/form_tch_net.html
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Bradley
Newbie
Newbie
Posts: 4
Joined: Fri Aug 19, 2005 4:00 am

Post by Bradley » Fri May 15, 2009 5:07 pm

Great! Thank you very much for your assistance. I will try out the evaluation...

Bradley

Post Reply