Clear Chart Data in G Web Development Software WebVI

Updated Jun 18, 2026

Issue Details

I want to clear the data on a chart in my program. I would like to know if it is possible to clear the chart data programmatically, especially while the program is running.

Solution

G Web Development Software is based on WebVI and operates similarly to LabVIEW, but within a web-based execution environment. However, chart behavior differs from the LabVIEW desktop environment.
 
  • In LabVIEW, clear chart data programmatically by writing an empty array to the History Data property.
  • In G Web Development Software, there is currently no feature that supports programmatic clearing or direct modification of chart history data.
 
Instead, G Web Development Software does support manually clearing the data.
To clear chart data manually:
 
  1. Stop the running application.
  2. Right-click the chart.
  3. Select Clear Data.
 
Note: The Clear Data option is not available while the program is running. The application must be stopped before performing this action.

Additional Information

A potential workaround is available through a community-contributed example that demonstrates how to simulate clearing chart data during execution by implementing custom logic to reset or replace the displayed data.

 

This example is provided for reference only. It is not an official feature, supported method, or part of the standard G Web Development Software shipping examples.