Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Line plot gaps are being filled as scrolls off

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
BarryRobertson Posted - 16 May 2012 : 18:01:23
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.
2   L A T E S T    R E P L I E S    (Newest First)
BarryRobertson Posted - 17 May 2012 : 07:34:58
I emailed you a modified ScrollApplication1 showing the issue and some .jpg files showing it.
quinncurtis Posted - 16 May 2012 : 22:20:55
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07