Programmatically Setting the Number of Stacked Plots in a Waveform Chart in LabVIEW™

Updated Jul 16, 2026

Environment

Software

  • LabVIEW

Use this method when you need a Waveform Chart in LabVIEW to display a variable number of stacked plots. By plotting a cluster to a Waveform Chart configured for stacked plots, LabVIEW automatically creates the corresponding number of stacked displays. This approach is useful when multiple data sets must be displayed simultaneously.

  1. Place a Waveform Chart in the front panel of your VI.
  2. Right-click the Waveform Chart, then select Properties.
  3. In the Appearance tab of the Chart Properties: Waveform Chart window, enable Stack plots.

 

 

  1. Create a cluster containing the data values to display by using the Bundle function.
  2. Wire the cluster output to the Waveform Chart, as shown in the example below.

 

 

  1. Run the VI. LabVIEW automatically creates one stacked plot for each element in the cluster.

 

 

  1. Create a new cluster size if you need a different number of stacked plots. Because clusters have a fixed size, the number of stacked plots is determined by the number of elements in the cluster.
    1. If you need to add or remove data sets programmatically, consider using an array instead of a cluster. Arrays can be resized programmatically; however, they do not adjust the number of displayed stacked plots. Manually resize the plot legend to display additional stacked plots.