LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sparkline Chart in Labview

Solved!
Go to solution

Hello,

 

I would like to show some tiny "sparkline" trends in Labview for several of my analog values. Is there a good way to do this?

 

https://en.wikipedia.org/wiki/Sparkline

http://www.practicaldb.com/data-visualization-consulting/sparklines/

 

thank you

 

LandingTrends

0 Kudos
Message 1 of 5
(3,120 Views)
Solution
Accepted by topic author downerdce

Hi downerdce,

 

1. create a graph on your front panel

2. hide the axes

3. format background (and all other stuff) as needed

4. change the graph size as needed

5. plot your data: one plot for the line, a 2nd plot for the "spark" dot…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,112 Views)
Solution
Accepted by topic author downerdce

Your table as an array of cluster, and inside of the cluster you put your customized graphs (open properties 😉 )

here is a quick draft:

Sparkline.png

A two (or more color) graph is done with a 2D array where each line is one color (defined by the properties) and each column contains one to show value at the color line and all others are NAN values ...

Edit: And just in case I swapped line/columns ... insert a transpose 2D array vi 😄

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 5
(3,095 Views)
Solution
Accepted by topic author downerdce

update 🙂  including Gerds idea for the dot...

Sparkline2.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 4 of 5
(3,086 Views)

These examples are fantastic! Thank you all very much!

0 Kudos
Message 5 of 5
(3,068 Views)