Ask AI
Skip to main content

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

  1. 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)
    • Result: The Sales by Region Chart will instantly become empty, ready for new data to be loaded or for the user to apply new filters.
  2. 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)
    • Result: The Monthly Budget Chart will be cleared, providing a blank canvas to display the new budget data as it's entered.
  3. 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)
    • Result: As the user leaves the tab, the Performance Overview Chart will be cleared of all its data, ensuring a clean state for future use.