ColorGrid and Mark Text

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Paul
Newbie
Newbie
Posts: 4
Joined: Wed Oct 15, 2014 12:00 am

ColorGrid and Mark Text

Post by Paul » Wed Dec 10, 2014 11:37 am

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.

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

Re: ColorGrid and Mark Text

Post by Narcís » Thu Dec 11, 2014 8:21 am

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.
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

Paul
Newbie
Newbie
Posts: 4
Joined: Wed Oct 15, 2014 12:00 am

Re: ColorGrid and Mark Text

Post by Paul » Mon Dec 15, 2014 11:15 am

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
Attachments
ContourSize.zip
ColorGrid number of data points test code
(17.1 KiB) Downloaded 564 times

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

Re: ColorGrid and Mark Text

Post by Narcís » Tue Dec 16, 2014 12:13 pm

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";
          }
        }
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

Paul
Newbie
Newbie
Posts: 4
Joined: Wed Oct 15, 2014 12:00 am

Re: ColorGrid and Mark Text

Post by Paul » Thu Dec 18, 2014 11:51 am

Narcís

Many thanks for confirming there is a problem. I would be interest to see how you get on.

Again many thanks
Paul

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

Re: ColorGrid and Mark Text

Post by Narcís » Thu Dec 18, 2014 12:05 pm

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.
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

Paul
Newbie
Newbie
Posts: 4
Joined: Wed Oct 15, 2014 12:00 am

Re: ColorGrid and Mark Text

Post by Paul » Thu Dec 18, 2014 3:10 pm

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

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

Re: ColorGrid and Mark Text

Post by Narcís » Thu Dec 18, 2014 3:24 pm

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.
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