colorgrid time scale

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Cinin
Newbie
Newbie
Posts: 9
Joined: Thu Jul 21, 2005 4:00 am

colorgrid time scale

Post by Cinin » Mon Nov 07, 2005 11:11 am

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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Nov 08, 2005 4:31 pm

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.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply