fill colorgrid with the color attribute

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

fill colorgrid with the color attribute

Post by HQO » Wed May 11, 2005 11:54 am

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);

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 11, 2005 2:28 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by HQO » Thu May 12, 2005 5:31 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu May 12, 2005 9:01 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by HQO » Fri May 13, 2005 12:27 pm

Is there release notes available for TeeChart v2? I download the beta version of TeeChart NET2 but that did not including any notes.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 13, 2005 12:48 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Hello

Post by HQO » Mon Jun 06, 2005 9:29 am

What is the situation of TeeChart v2 (VS2002). When it's released?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 06, 2005 12:11 pm

Hi HQO,

It is expected to be released before the end of this week.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by HQO » Thu Jun 16, 2005 9:27 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 16, 2005 10:03 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Still problems

Post by HQO » Wed Jun 22, 2005 2:18 pm

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);

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 22, 2005 3:05 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply