Jump to content
Software FX Community

Skipping certain points in the source data


Dinosaur
 Share

Recommended Posts

Hi,

I'm trying to plot a line graph. But some of the source data would contain "null" values for the Y, while x is real time. I need ChartFX to ignore the null Y values. In effect, in a real time graph, there will appear to be a gap in the line graph.

This works when I'm importing a table from an Access database where field 1 represents the x values (time), and field 2 is the y. A null value is simply an empy field 2 against a valid field 1 for a record. After read into a DataSet, the test MyDataSet.Tables[0].Rows[n]("Field2").IsNull is true for the record containing the null value.

However, if I'm creating a table programmatically, ChartFX is no longer able to create that same gap. The IsNull test returns True for the same record! In fact, the value for that record was copied from the database (as opposed to assigning a null value to it). So I just don't get why ChartFX would ignore the null value in this case (ChartFX simply ignores this record and draws a line between the previous record  and the record after the null record).

Do you have any idea why that's the case?

 

Link to comment
Share on other sites

For some reason Chart FX is not understanding that value as null. What is Chart FX plotting where that value is ? Zero ?

Please provide a repro case or a code snippet that shows how you are building that table (specifically the null values) and passing it to the chart so that we can reproduce it here and tell you exactly what's happening and how to fix it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...