Page 1 of 1

fill colorgrid with the color attribute

Posted: Wed May 11, 2005 11:54 am
by 8120359
I noticed following problem when I filling the color grid series with color - attribute. I'm using the VS2002 and TeeChart 1.0.1644.16795.

When adding points to the colorgrid, it not set the value point colors correctly (it not scaling the colors) if right side of the colorgrid includes values with Color - parameter.

But if I do the same with TeeChart 1.0.1452.42972, then there is no problems.

Here's the example code, which not set the color correctly

Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid();

colorGrid1.Pen.Visible = false;

tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Minimum = 0;
tChart1.Axes.Bottom.Maximum = 200;

tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Minimum = 0;
tChart1.Axes.Left.Maximum = 100;

for (int i = 0; i < 200; i++)
{
for (int j = 0; j < 100; j++)
{
if(i < 10)
colorGrid1.Add(i,i * 0.5,j);
else if (i > 10 && i <50)
colorGrid1.Add(i,i * 0.5 ,j,Color.Transparent);
else if (i >= 50 && i < 90)
colorGrid1.Add(i,i * 0.5,j);
else
colorGrid1.Add(i,5,j,Color.Transparent);
}
}
colorGrid1.PaletteSteps=30;
colorGrid1.ClearPalette();
colorGrid1.UseColorRange = false;
colorGrid1.StartColor=Color.Green;
colorGrid1.MidColor=Color.LightGreen;
colorGrid1.EndColor=Color.White;
colorGrid1.UsePalette = true;

tChart1.Series.Add(colorGrid1);


BUT if you change the order of last two else statements, then it works:

else if (i >= 50 && i < 90)
colorGrid1.Add(i,5,j,Color.Transparent);
else
colorGrid1.Add(i,i * 0.5,j);

Posted: Wed May 11, 2005 2:28 pm
by narcis
Hi HQO,

I've been able to reproduce it, and it's a bug.

I've already added it to our deffect list to be fixed for future releases.

Posted: Thu May 12, 2005 5:31 am
by 8120359
ok, in our side we need that functionality end of this month so any plans when you release this new version?

And import thing, is that new version still VS2002 compatible?

Posted: Thu May 12, 2005 9:01 am
by narcis
Hi HQO,

Well, a workaround can be using 2 ColorGrid series because the problem is when switching from color to a palette. Working code would be:

Code: Select all

			tChart1.Series.RemoveAllSeries();
			Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(); 
			Steema.TeeChart.Styles.ColorGrid colorGrid2 = new Steema.TeeChart.Styles.ColorGrid(); 

			tChart1.Aspect.View3D = false;
			colorGrid1.Pen.Visible = false; 
			colorGrid2.Pen.Visible = false; 

			tChart1.Axes.Bottom.Automatic = false; 
			tChart1.Axes.Bottom.Minimum = 0; 
			tChart1.Axes.Bottom.Maximum = 200; 

			tChart1.Axes.Left.Automatic = false; 
			tChart1.Axes.Left.Minimum = 0; 
			tChart1.Axes.Left.Maximum = 100; 

			colorGrid1.PaletteSteps=30; 
			colorGrid1.ClearPalette(); 
			colorGrid1.UseColorRange = false; 
			colorGrid1.StartColor=Color.Green; 
			colorGrid1.MidColor=Color.LightGreen; 
			colorGrid1.EndColor=Color.White; 
			colorGrid1.UsePalette = true; 

			colorGrid2.PaletteSteps=30; 
			colorGrid2.ClearPalette(); 
			colorGrid2.UseColorRange = false; 
			colorGrid2.StartColor=Color.Green; 
			colorGrid2.MidColor=Color.LightGreen; 
			colorGrid2.EndColor=Color.White; 
			colorGrid2.UsePalette = true; 

			for (int i = 0; i < 200; i++) 
			{ 
				for (int j = 0; j < 100; j++) 
				{ 		
					if(i < 10 && i < 90) 
						colorGrid1.Add(i,i * 0.5,j); 
					
					else if(i >= 90)
						colorGrid2.Add(i,i * 0.5 ,j); 
				
				} 
			} 
		
			tChart1.Series.Add(colorGrid1); 
			tChart1.Series.Add(colorGrid2); 
Another solution would be not using a palette.
ok, in our side we need that functionality end of this month so any plans when you release this new version?
TeeChart for .NET v2 is expected to be release before the end of this month.
And import thing, is that new version still VS2002 compatible?
Yes, TeeChart for .NET v2 will be compatible with VS.NET 2002.

Posted: Fri May 13, 2005 12:27 pm
by 8120359
Is there release notes available for TeeChart v2? I download the beta version of TeeChart NET2 but that did not including any notes.

Posted: Fri May 13, 2005 12:48 pm
by narcis
Hi HQO,

Not by now, release notes will be published when TeeChart for .NET v2 is released.

Some of the features it will include is Open GL support, HotSpots implementation for WebForms, and much more.

Hello

Posted: Mon Jun 06, 2005 9:29 am
by 8120359
What is the situation of TeeChart v2 (VS2002). When it's released?

Posted: Mon Jun 06, 2005 12:11 pm
by narcis
Hi HQO,

It is expected to be released before the end of this week.

Posted: Thu Jun 16, 2005 9:27 am
by 8120359
I look the customer download site and there is only beta version available of TeeChart v.2

Also there was information that full version expires August 2005?

Is that the plan?

Posted: Thu Jun 16, 2005 10:03 am
by narcis
Hi HQO,
I look the customer download site and there is only beta version available of TeeChart v.2
Yes, we have almost already finished. It is going to be released today. However it will only be available for those customers holding a TeeChart for .NET v2 license.
Also there was information that full version expires August 2005?


TeeChart for .NET v2 BETA version expires on August 2005
Is that the plan?
Registered version won't expire while evaluation versions are limited to 40/50 days.

Still problems

Posted: Wed Jun 22, 2005 2:18 pm
by 8120359
I updated the v2 (2.0.1938.29194) beta and still the same error occurs.

all colorpoints are solid when using the Color - attribute in add() method

if I use the old version of TeeChart (1.0.1452.42972) then colors of point are scaled correctly.

So, it seems that this new version not fix this problem? any workaround for this?



Here's the one example code what I have used:

Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid();

colorGrid1.Pen.Visible = false;

tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Minimum = 0;
tChart1.Axes.Bottom.Maximum = 200;

tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Minimum = 0;
tChart1.Axes.Left.Maximum = 100;
for (int i = 0; i < 200; i++)
{
for (int j = 0; j < 100; j++)
{
if(i < 60)
colorGrid1.Add(i,i * 0.5,j);
else
colorGrid1.Add(i,5,j,Color.Transparent);
}
}
colorGrid1.PaletteSteps=30;
colorGrid1.ClearPalette();
colorGrid1.UseColorRange = false;
colorGrid1.StartColor=Color.Green;
colorGrid1.MidColor=Color.LightGreen;
colorGrid1.EndColor=Color.White;
colorGrid1.UsePalette = true;

tChart1.Series.Add(colorGrid1);

Posted: Wed Jun 22, 2005 3:05 pm
by narcis
Hi HQO,

No, I can see this bug (TF02010637) hasn't been fixed yet.

A workaround would be using 2 colorgrid series as I pointed you previously.