Clear Bar chart
Function: Clear Bar chart
This action allows you to quickly remove all data points from a selected Bar chart UI element on your application page. This is useful when you want to reset a chart, prepare it for new data, or simply clear its display.
Input
- Bar chart UI element:
- Description: Select the specific Bar chart component on your page that you wish to clear. This input is required.
- Type: UI Element (specifically a Bar chart)
Output
This action directly modifies the selected Bar chart UI element by removing all its data. It does not produce any separate output values.
Execution Flow
Real-Life Examples
-
Resetting a Filtered Chart:
- Scenario: You have a dashboard with a Bar chart showing sales by region. Users can filter the data by date range. After applying a filter, you want to provide a "Reset Chart" button that clears the current filtered data from the chart, allowing the user to start fresh.
- Inputs:
- Bar chart UI element:
Sales by Region Chart(the specific Bar chart component on your dashboard)
- Bar chart UI element:
- Result: The
Sales by Region Chartwill instantly become empty, ready for new data to be loaded or for the user to apply new filters.
-
Preparing for New Data Entry:
- Scenario: You have a form where users input monthly budget data, and a Bar chart visualizes this data as it's entered. When a user starts entering data for a new month, you want to clear the previous month's visualization to avoid confusion.
- Inputs:
- Bar chart UI element:
Monthly Budget Chart(the Bar chart displaying budget data)
- Bar chart UI element:
- Result: The
Monthly Budget Chartwill be cleared, providing a blank canvas to display the new budget data as it's entered.
-
Clearing a Chart on Page Navigation:
- Scenario: Your application has multiple tabs, each with different data visualizations. When a user navigates away from a tab that contains a Bar chart, you want to clear the chart's data to free up resources or ensure it's fresh when they return.
- Inputs:
- Bar chart UI element:
Performance Overview Chart(the Bar chart on the tab being exited)
- Bar chart UI element:
- Result: As the user leaves the tab, the
Performance Overview Chartwill be cleared of all its data, ensuring a clean state for future use.