Transparent issues in colorgrid
Posted: Fri Jun 15, 2007 11:37 am
When I fill colorgrid with Double.Nan and/or Color.Transparent parameter it not shown correctly the other colorpoints.
Here's example:
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Maximum = 3;
tChart1.Axes.Left.Minimum = 0;
tChart1.Axes.Left.Inverted = true;
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Maximum = 5;
tChart1.Axes.Bottom.Minimum = 0;
tChart1.Walls.View3D = false;
tChart1.Walls.Back.Color = Color.White;
tChart1.Aspect.View3D = false;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++)
{
//colorGrid1.Add(j, i*j, i ,Color.White);
if (j == 0 || j > 3)
colorGrid1.Add(j, Double.NaN , i);
else
colorGrid1.Add(j, i*j, i);
}
}
Double.NaN caused that every point in colorgrid has same color (color grid looks solid)
if I add a Color.Transparent - parameter
=> colorGrid1.Add(j, Double.NaN , i, Color.Transparent);
this caused that left and right edges are transparent but center value points are solid?
If I used earlier version of TeeChart, let say ver 1.1.1879, it hides the left and right points correctly and also coloring correctly each color point in center, so what changes is happend after that!
And are there workaround / fixes for this? Because what I check the earlier versions, TeeChart has been this issue really long time
Here's example:
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Maximum = 3;
tChart1.Axes.Left.Minimum = 0;
tChart1.Axes.Left.Inverted = true;
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Maximum = 5;
tChart1.Axes.Bottom.Minimum = 0;
tChart1.Walls.View3D = false;
tChart1.Walls.Back.Color = Color.White;
tChart1.Aspect.View3D = false;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++)
{
//colorGrid1.Add(j, i*j, i ,Color.White);
if (j == 0 || j > 3)
colorGrid1.Add(j, Double.NaN , i);
else
colorGrid1.Add(j, i*j, i);
}
}
Double.NaN caused that every point in colorgrid has same color (color grid looks solid)
if I add a Color.Transparent - parameter
=> colorGrid1.Add(j, Double.NaN , i, Color.Transparent);
this caused that left and right edges are transparent but center value points are solid?
If I used earlier version of TeeChart, let say ver 1.1.1879, it hides the left and right points correctly and also coloring correctly each color point in center, so what changes is happend after that!
And are there workaround / fixes for this? Because what I check the earlier versions, TeeChart has been this issue really long time