Page 1 of 1
ColorGrid and Mark Text
Posted: Wed Dec 10, 2014 11:37 am
by 15670439
I am using a ColorGrid to create a spectrogram of a signal. This consists of a the results of a number of FFTS taken between a specified signal start and end time for a defined number of samples with sample overlap. The frequency forms the X axis, the amplitude the Y axis and time the Z axis. The maximum allow number of FFTs for display is limited 1250 but can be as few as 1.
The user can select a data point on the ColorGrid and a Mark Text value displayed. The point index marks style is being used to return an index into the data series which is then used to index the X, Y and Z values to create the Mark Text. When the maximum number of FFTs are displayed the Mark Text is always correct, however when less that the maximum then the Mark Text is incorrect and on investigation the point index value is less than expected.
At present I am not sure if there is a problem with the way I am setting up the ColorGrid and thus if the point index is correct and my set up is wrong. Or if there have been problems with the ColorGrid point index, could someone advise me on this. I am currently using TeeChart .NET2010 VS .NET2005 4.1.2010.08041. I have not as yet been able to create a simple example of the problem I can send to you.
Re: ColorGrid and Mark Text
Posted: Thu Dec 11, 2014 8:21 am
by narcis
Hello Paul,
Paul wrote:I have not as yet been able to create a simple example of the problem I can send to you.
That would be very helpful and necessary as what you describe is quite complex.
Thanks in advance.
Re: ColorGrid and Mark Text
Posted: Mon Dec 15, 2014 11:15 am
by 15670439
Narcís
I have now been able to create and example. The attached program draws two ColorGrids one with 640,000 data points and one with 640,800 data points. Both have a X axis of 0 to 200. The first Colour grid has one vertical and one horizontal line of values that are non-zero, with a Z range of 0 to 800. The first Colour grid has two vertical and two horizontal lines of values that are non-zero, with a Z range of 0 to 801.
The mark text values on the first ColorGrid are incorrect, the vertical line demonstrates this, while the mark text values on the second ColorGrid are correct. I have changed the Z range on the second ColorGrid from 800, mark text incorrect, to 1600, mart text correct. And from other tests I have done on my application it seems to me that the correctness or otherwise of the mark text values is dependant on the number of data points plotted. Could you confirm that this is the case, or can you tell be if I am drawing the ColorGrid incorrectly.
I have added the code for my example, it is part of a VS 2005 project. I am using TeeChart for .Net 2010 version 4.1.2010.8041. A version with the built program is to large to send, but I could do this via e-mail if you wish.
Many Thanks
Paul
Re: ColorGrid and Mark Text
Posted: Tue Dec 16, 2014 12:13 pm
by narcis
Hi Paul,
This might be a problem with ColorGrid.Clicked method. I haven't been able to get it working consistenly with different number of points nor with the code below. So I added this problem do bugzilla (
ID1051) to be investigated for future versions. Please feel free to sign up and add yourself to the CC List at bugzilla for status updates.
Code: Select all
void _dataSeriesContour1_Click(object sender, MouseEventArgs e)
{
var colorGrid1 = (Steema.TeeChart.Styles.ColorGrid)sender;
var index = colorGrid1.Clicked(e.X, e.Y);
if (index != -1)
{
_plotChartContour1.Header.Text = colorGrid1.YValues[index].ToString() + ", " + colorGrid1.XValues[index].ToString() + ", " + colorGrid1.ZValues[index].ToString();
}
else
{
_plotChartContour1.Header.Text = "no point clicked";
}
}
Re: ColorGrid and Mark Text
Posted: Thu Dec 18, 2014 11:51 am
by 15670439
Narcís
Many thanks for confirming there is a problem. I would be interest to see how you get on.
Again many thanks
Paul
Re: ColorGrid and Mark Text
Posted: Thu Dec 18, 2014 12:05 pm
by narcis
Hi Paul,
You're welcome.
Paul wrote:I would be interest to see how you get on.
Please
sign up at Steema's bugzilla and add yourself to the CC List of
bug #1051.
Re: ColorGrid and Mark Text
Posted: Thu Dec 18, 2014 3:10 pm
by 15670439
Narcís
I have signed up for Bugzilla. Have you any idea as to when the problem will be fixed and a revised library release?
Thanks
Paul
Re: ColorGrid and Mark Text
Posted: Thu Dec 18, 2014 3:24 pm
by narcis
Hello Paul,
Yesterday we published a TeeChart for .NET update. See the announcement
here. Given that, you may expect a new release being published before the end of the first quarter of 2015.
I added you to the CC List for
bug #1051. I'm afraid I can't tell you when this issue is going to be closed. The time until we can fix a bug or implement a new feature depends on variables such as the complexity of the problem, impact and the number of issues with even higher priority that claims our team attention.