LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph with missing dates

Solved!
Go to solution

Hello community,

 

I'm struggling making an XY graph with some data missed. In this example, there isn't data from Nov 19th. I was wondering if there is an easier way to generate the correct graph instead that said in this post:

 

https://forums.ni.com/t5/LabVIEW/To-find-the-missing-date-in-a-month/m-p/507357#M241845

 

Thank you

 

vicens_0-1606298928528.png

 

0 Kudos
Message 1 of 3
(187 Views)
Solution
Accepted by topic author vicens

Hi vicens,

 


@vicens wrote:

I'm struggling making an XY graph with some data missed. In this example, there isn't data from Nov 19th. I was wondering if there is an easier way to generate the correct graph instead that said in this post:


How much easier do you want that?

When you look for "missing" data, then you can search for that in two ways:

  • "step by step": go through your (ordered list of) elements and detect missing elements
  • "check them all" by comparing with a list containing all expected elements

The linked thread uses the 2nd method, but you can also implement the first one!

 

I prefer to "hide" missing elements by using an Y value of "NaN" instead of "zero"…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 3
(184 Views)

Thank you GerdW,

 

I thought using Y values with a date format the T-axis of the graph would autoadjust automaticaly. It looks like I was wrong.

 

So, as you suggest me, I will follow the "step-by-step" procedure, filling the missing elements and adding the NaN value.

 

Best regards

vicens

0 Kudos
Message 3 of 3
(165 Views)