Additional Information
If the x-axis values of a graph/chart will be changing, follow this procedure:
- Create controls on the Front Panel, one for each x-axis label. If you are not using the captions for your existing controls, and you have more controls than x-axis values, you will not need dummy controls.
- Right click the controls and select Visible Items»Caption.
- Right click the captions and select Vertical Arrangement»Counter-clockwise. Place one caption next to each X-axis marker on the graph. Move the dummy controls by placing them off-screen where the user can't see them.
- Create Property Nodes for the controls on the Block Diagram and write a value to Captions»Text. This will be a string value, so numeric values must be converted to string values to be used with this property.
- Now create Property Nodes to obtain the XScale.Minimum and XScale.Increment values of the graph. These values can be used to calculate the numeric value for each label along the X-axis programmatically.