Page 1 of 1

Question about MinAxisIncrement...

Posted: Thu May 14, 2009 1:01 pm
by 9638071
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

Posted: Thu May 14, 2009 2:51 pm
by narcis
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.

Posted: Thu May 14, 2009 2:54 pm
by 9638071
I am using v2.0.3203 ... I will update to the latest version. Thank you.

Posted: Thu May 14, 2009 3:03 pm
by narcis
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.

Posted: Thu May 14, 2009 3:56 pm
by 9638071
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

Posted: Fri May 15, 2009 7:02 am
by narcis
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

Posted: Fri May 15, 2009 5:07 pm
by 9638071
Great! Thank you very much for your assistance. I will try out the evaluation...

Bradley