LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NXG - Is there a way to change the Label of a graph or chart programatically?

Solved!
Go to solution

Using NXG.

 

Using a chart or graph I want to label the chart or graph programmatically according to conditions I set in my code. I know how to set my conditions. I can't seem to find a property for "Label" value in any of the properties.

 

Is there a way to set the label text programmatically?

Image 27.png

0 Kudos
Message 1 of 5
(1,407 Views)
Solution
Accepted by topic author flycast

Hey flycast,

 

You should be able to use the Label property's text to set the name of graphs and charts programmatically. Please note the text will just change while the GVI is running.

 

oscarfonseca_0-1604808710579.png

 

All the best,

0 Kudos
Message 2 of 5
(1,366 Views)

Thanks for that! I keep forgetting that read only properties can have read/write properties of their own.

0 Kudos
Message 3 of 5
(1,336 Views)

Hi all,

 

Can we change the label of the axis in runtime too?

0 Kudos
Message 4 of 5
(1,295 Views)

Currently, there is no way to programmatically change the axis labels, but it is a feature request that should be implemented soon.

 

As a workaround, you could create your own labels using string indicators, and then write to the value of the strings with whatever you want the labels to be. However, I don't think NXG will allow you to rotate the string indicators at all, so the Y axis label will be horizontal.

0 Kudos
Message 5 of 5
(1,233 Views)