fill colorgrid with the color attribute
fill colorgrid with the color attribute
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);
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);
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
Another solution would be not using a palette.
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);
TeeChart for .NET v2 is expected to be release before the end of this month.ok, in our side we need that functionality end of this month so any plans when you release this new version?
Yes, TeeChart for .NET v2 will be compatible with VS.NET 2002.And import thing, is that new version still VS2002 compatible?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Hello
What is the situation of TeeChart v2 (VS2002). When it's released?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi HQO,
It is expected to be released before the end of this week.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi HQO,
TeeChart for .NET v2 BETA version expires on August 2005
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.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?
TeeChart for .NET v2 BETA version expires on August 2005
Registered version won't expire while evaluation versions are limited to 40/50 days.Is that the plan?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Still problems
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);
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);
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |