Page 1 of 1

ColorGrid Minimum Value

Posted: Tue Jan 20, 2009 4:09 pm
by 13045625
I am using a ColorGrid with an regular grid. Z values go from 0 to 99, and X values from 0 to 2047. However the grid goes from 1 to 100, and 1 to 2048. I am using TeeChart version 3.5.3146.24806. I don't think that this problem happened with earlier versions of TeeChart.

Posted: Wed Jan 21, 2009 9:13 am
by narcis
Hi jenb,

This works fine for me here using code below with build 3.5.3274.30662/3/4, which is the latest version available at the client area. Could you please check if this version solves the problem at your end?

Code: Select all

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

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);

			Random y = new Random();

			for (int x = 0; x < 99; x++)
			{
				for (int z = 0; z < 2047; z++)
				{
					colorGrid1.Add(x, y.Next(), z);		
				}
			}

			tChart1.Aspect.View3D = false;
			tChart1.Legend.Visible = false;
			tChart1.Dock = DockStyle.Fill;
		}
Thanks in advance.

Posted: Wed Jan 21, 2009 4:46 pm
by 13045625
Thanks Narcis, I confirm that the fault has been fixed in the latest release.