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
 Real-Time Graphics Tools for .Net (VB and C#)
 Line plot gaps are being filled as scrolls off
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BarryRobertson

USA
21 Posts

Posted - 16 May 2012 :  18:01:23  Show Profile  Reply with Quote
I will try to describe the issue and modify an example to show the issue if you cannot understand it, but let me first try to explain it by setting up the scenario.

I have my x-axis set to 1 minute with major tick marks every 15 seconds.

Data plots across the screen which is scrolling with time to the left as points are added to the right.

If a control is turned off, data stops coming in, so after say 2 seconds, I mark the expected data as invalid with two ways that didn't work any differently:

trendProcessVar[plot].SetCurrentValue(declareValueMissingAt[plot], ChartObj.rBadDataValue);

and

trendProcessVar[plot].ProcessVarDataset.SetValidData(trendProcessVar[plot].ProcessVarDataset.NumberDatapoints-1, false); (FYI, NumberDatapoints increases)

This inserts the gap as expected in the line plotted until data resumes.

So, lets say from 00:00:30 to 00:00:45 we have a gap with valid data from 00:00:00 - 00:00:30 and from 00:00:45 to 00:01:00. (-- -)

The problem is that when the beginning of the gap reaches the left-most visible area of the chart and starts to scroll off the view (e.g. plotting 00:00:30 - 00:01:30 now), the chart unexpectedly draws an unexpected line, filling the gap to the beginning of the valid data (end of the gap). It essentially removes or fills the gap.

I hope you can tell what the issue is. I will try to adjust one of your examples if that doesn't help.

It essentially does this pictorially:
|----|
|----|
|--- |
|-- -|
|- --|
|----| (should be seeing a gap at the beginning, but it draws a line)

Thanks. This is driving me crazy.

quinncurtis

1586 Posts

Posted - 16 May 2012 :  22:20:55  Show Profile  Reply with Quote
We could not reproduce what you seem to describe using our ScrollApplication1 example program. See if you can create a simple program which reproduces the problem and send us the complete project.
Go to Top of Page

BarryRobertson

USA
21 Posts

Posted - 17 May 2012 :  07:34:58  Show Profile  Reply with Quote
I emailed you a modified ScrollApplication1 showing the issue and some .jpg files showing it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07