Page 1 of 1

colorgrid time scale

Posted: Mon Nov 07, 2005 11:11 am
by 9637812
Hi,
in our application (VS 2003 .NET)we use a colorgrid behind 2 series (Gantt style) to color different days, when we go to Hours scale colorgrid is no more syncronized with the time scale when we move right or left. This happens when we zoom too.
Can you help us??

Thanks

Posted: Tue Nov 08, 2005 4:31 pm
by Chris
Hi,

The following code seems to work correctly using the latest TeeChart for .NET version 2 release:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			double x, y, z;
			Random rnd = new Random();
			tChart1.Aspect.View3D = false;
			colorGrid1.IrregularGrid = true;

			for(x = 35000; x < 35003; x++) 
			{
				for(z = 0; z < 3; z++) 
				{
					y = rnd.Next(100);
					colorGrid1.Add(x,y,z);
				}
			}
			colorGrid1.XValues.DateTime = true;
		}
Could you please modify the above so that I can reproduce your problem here?

Many thanks.