Page 1 of 1
Zooming on ColorGrid leads to corrupted display
Posted: Tue Mar 29, 2011 1:55 pm
by 13047077
Hello,
I'm currently working with a ColorGrid having quite some values, around 600000 in this example but the problem is reproductible with less values than that. When displaying the full range of the Y axis, in order to have every value displayed, everything is fine, but when trying to zoom or trying to make bigger anything under half of the Y range then the data is not displayed properly and stays black. Here are a few screenshots to make it more clear :
Initial display :
- Full range, everything is fine
- fullrange.jpg (451.93 KiB) Viewed 19874 times
Reducing Y range :
- Starting to reduce Y axis range, some data starts to be black
- ChangingYAxisRange1.jpg (377.5 KiB) Viewed 19875 times
Reducing Y range more :
- Reducing Y axis range, when reaching half of the range the whole displayed data is black.
- ChangingYAxisRange2.jpg (86.84 KiB) Viewed 19847 times
When zooming anywhere under half of the range we have a similar behavior, every data being black.
Kind regards
Re: Zooming on ColorGrid leads to corrupted display
Posted: Tue Mar 29, 2011 2:07 pm
by 13047077
By the way, working on smaller sets of data I have a different kind of corruption, if zooming too much the color seem to be chosen randomly, if dezooming everything is back to normal. This happens both if zooming is done at the same time than updating, or at a different time.
- shinyColor.jpg (253.88 KiB) Viewed 19876 times
Re: Zooming on ColorGrid leads to corrupted display
Posted: Wed Mar 30, 2011 10:12 am
by 10050769
Hello Frances,
I inform you that bug with number (TF0201511) was fixed in maintenance release of 28th of -version 2010. You can find more information in
page version info. I recommend you download
Eval version of TeeChart.Net 2010 that you can find in
download page and check if still appears problem.
Thanks,
Re: Zooming on ColorGrid leads to corrupted display
Posted: Wed Mar 30, 2011 10:48 am
by 13047077
Hello Sandra,
My bad, I haven't found the previous bug report about this. I've tested the evaluation version and this is has been nicely fixed. Sweet !
ps : Do you have any idea when the evaluation version is going to be released as an official version ?
Kind regards
Re: Zooming on ColorGrid leads to corrupted display
Posted: Wed Mar 30, 2011 10:59 am
by narcis
Hi Frances,
As you can see in the version info page, TeeChart for .NET 2009/2010 (aka v4), has been a stable release since April 2009. Fully functional evaluation versions are for users to test Steema products before purchasing/upgrading so they can see how products will perform for them. TeeChart for .NET can be upgraded online at
http://www.steema.com/order/net/u.
Re: Zooming on ColorGrid leads to corrupted display
Posted: Fri Jul 20, 2012 7:06 am
by 15661487
Hi,
I appear to be experiencing the same (or very similar) issue to Frances. Unfortunately I am using the latest version (TeeChartNET2012_4.1.2012.07130). I was using a 2011 version which had the same issue. I did update the reference in my project to ensure I'm using the right dll, but no luck.
Any idea why this may be occurring? I am using quite a few points - in this particular example 1024 (x) x 389 (y).
Thanks,
Michael
Re: Zooming on ColorGrid leads to corrupted display
Posted: Mon Jul 23, 2012 6:00 am
by 15661487
The problem seems to only occur when the first x value is non-zero (in my case, 1). If it is zero, it works perfectly.
Re: Zooming on ColorGrid leads to corrupted display
Posted: Mon Jul 23, 2012 2:37 pm
by 10050769
Hello CourteousD,
Seems that if you use x=1 and z=0 the grid need set the property IrregularGrid to true. Please, can you tell us if you active the property Irregular grid of ColorGrid to true the problem is solved for you, if you use x=1 and z=0?.
Thanks,
Re: Zooming on ColorGrid leads to corrupted display
Posted: Tue Jul 24, 2012 12:22 am
by 15661487
Hi Sandra,
I was looping through with x = 1-count, and z = 0-count - 1. If I set IrregularGrid to true, the corruption while zooming goes away, though the time to actually perform the zoom increases by 3-4x, up to 7-10s for a plot of this size.
It appears that starting with a non-zero x0 (the starting x) and z0 = 0 shows the corruption, but if z0 is non-zero it doesn't occur.
I'm assuming this is a bug of some kind, so I'll need a work around such as turning on IrregularGrid. Is there a way to improve rendering speed for charts with lots of points like this one? Perhaps using Draw2D or OpenGL?
Michael
Re: Zooming on ColorGrid leads to corrupted display
Posted: Tue Jul 24, 2012 3:51 am
by 15661487
In addition to that, there appears to be another problem. Zooming does not appear to work when CenteredPoints is set to true. The Zoomed event fires, but what's on the screen doesn't change.
In VS2010 I saw a message in the debugger's output when I attempted to zoom, following the Zoomed event:
A first chance exception of type 'System.AccessViolationException' occurred in mscorlib.dll
This occurs even when I change the x's and z's to avoid corruption.
Michael
Re: Zooming on ColorGrid leads to corrupted display
Posted: Tue Jul 24, 2012 10:46 am
by 10050769
Hello Michael,
I can not reproduce your problem using next code and last version of TeeChartFor.Net:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.ColorGrid colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);
Random rnd = new Random();
colorGrid1.IrregularGrid = true;
for (int i = 1; i < 100; i++)
{
for (int j = 0; j < 50; j++)
{
colorGrid1.Add(i, rnd.NextDouble(), j);
}
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
(tChart1[0] as Steema.TeeChart.Styles.ColorGrid).CenteredPoints = checkBox1.Checked;
}
Please check if it works for you. If it doesn't reproduce your problem, please can you send me a simple project, so we can reproduce your exactly problem here?
Thanks,
Re: Zooming on ColorGrid leads to corrupted display
Posted: Wed Jul 25, 2012 1:09 am
by 15661487
Hi Sandra,
I don't see the exception when IrregularGrid is true. If you set IrregularGrid to false in your example, set CenteredPoints to true, then attempt a zoom, I expect you'll see the exception (and no zoom).
As mentioned in my first email yesterday, leaving IrregularGrid true fixes these problems but results in rather slow rendering of the chart, presumably due to the number of points. If there is a way of speeding that up perhaps I can use IrregularGrid as a workaround until the other issues are resolved.
Michael
Re: Zooming on ColorGrid leads to corrupted display
Posted: Thu Jul 26, 2012 9:50 am
by narcis
Hi Michael,
I don't see the exception when IrregularGrid is true. If you set IrregularGrid to false in your example, set CenteredPoints to true, then attempt a zoom, I expect you'll see the exception (and no zoom).
Yes, I could reproduce the problem as per your instructions and added it (TF02016275) to the defect list to be fixed.
As mentioned in my first email yesterday, leaving IrregularGrid true fixes these problems but results in rather slow rendering of the chart, presumably due to the number of points. If there is a way of speeding that up perhaps I can use IrregularGrid as a workaround until the other issues are resolved.
Not many ideas here. You could try with Direct2D but I don't think it will help much as probably the bottleneck isn't a canvas thing but common series code for all environments.
Re: Zooming on ColorGrid leads to corrupted display
Posted: Fri Jul 27, 2012 12:20 am
by 15661487
Thank you. Can you confirm that the issue that occurs when x=1 and z=0 is being put on the defect list also?
Michael
Re: Zooming on ColorGrid leads to corrupted display
Posted: Fri Jul 27, 2012 7:14 am
by narcis
Hi Michael,
Yes, everything discussed here is on that ticket.