Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 SimpleLinePlot data overhead problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tobias J

10 Posts

Posted - 06 Feb 2006 :  14:24:48  Show Profile  Reply with Quote
Hi

I have a TimeSimpleDataset consisting of 10000 time- and y-values (y1) which I present using SimpleLinePlot. I also have about 5-10 datapoints (y2) spread across the same time span as y1. I would like to present y2 in the same graph as y1, with the two y-arrays sharing the same x-axis. This can be done by null-padding y2 and building another 10000 point TimeSimpleDataset using the same time vector as y1. This method leads to a really huge data overhead though. One way to avoid this overhead is to present y2 using Data Markers, but I haven’t found a way to show Data Tooltips using Data Markers. I would be thankful for suggestions on how to solve the overhead problem while still being able to use Data Tooltips.

Regards
Tobias

quinncurtis

1164 Posts

Posted - 06 Feb 2006 :  15:15:51  Show Profile  Reply with Quote
I do not understand your basic logic.

You should be able to display a 10000 point dataset, and another 10 point dataset, in the same graph using the same x-axis. There is nothing special about that. The datasets are independent of one another and do NOT share a common set of x-values. If you choose the x-values of the data points for the 10 point dataset correctly they will disperse along the 10000 point dataset exactly as you want. For example, the first dataset of 10000 points might contain an x-value for every 1-msec, for a total of 10 seconds. The second dataset of 10 points would contains an x-value every 1-second, for a total of 10 seconds. The two datasets would plot on top of one another with respect to the same x-axis.

Another way to look at it is that the first dataset of 10000 points is initialized using two arrays (X1, Y1 for example), each sized to 10000 elements, X1 holding the 10000 time (ChartCalendar) x-values, ant Y1 holding 10000 numeric y-values. The second dataset of 10 data points is initialized using two arrays (X2, Y2 for example), each sized to 10 elements, X2 holding the 10 time (ChartCalendar) x-values, and Y2 holding 10 numeric y-values.

There is no "overhead" as you describe, since every data point in both datasets is plotted. Your data tooltip problem goes away if you do it this way.

If you cannot get this to work the way we describe it then you need to describe in detail what is wrong with the resulting plot.



Go to Top of Page

Tobias J

10 Posts

Posted - 07 Feb 2006 :  05:56:00  Show Profile  Reply with Quote
Thank you for your quick reply.

You are of course right, I mixed things up. I think I got into this overhead problem because I thought you had to create TimeCoordinates and LinearAxis for every DataSet, which apparently is not the case. Anyway, everything is working fine now. Thanks!

Kind regards,
Tobias
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07