Ask AI
Skip to main content

Remove data-set of Bar chart

Function: Remove data-set of Bar chart

This action allows you to dynamically remove a specific data series (or "data-set") from a Bar Chart UI element on your application page. This is useful when you want to update the chart's display by taking out certain data without reloading the entire chart or page. For instance, you might want to hide a specific year's sales data or a particular product category from a sales chart.

Input

  • UI element (Type: PART, specifically a Bar Chart): This is the Bar Chart component on your page from which you want to remove a data-set. You will select the specific Bar Chart UI element from a list of available UI elements.
  • Code (Type: STRING): This is the unique identifier (code) of the data-set you wish to remove from the selected Bar Chart. Each data series within a chart typically has a unique code assigned to it.

Output

This action does not produce any direct output that can be used in subsequent steps. Its primary effect is to modify the specified Bar Chart UI element by removing the chosen data-set.

Execution Flow

Real-Life Examples

Example 1: Hiding last year's sales data

  • Scenario: You have a "Monthly Sales" bar chart that displays sales figures for multiple years. You want to temporarily remove the "Sales 2022" data-set to focus on current year performance.
  • Inputs:
    • UI element: Monthly Sales Chart
    • Code: Sales_2022
  • Result: The "Monthly Sales Chart" on your page will update, no longer displaying the bars corresponding to the "Sales 2022" data-set.

Example 2: Removing a specific product category from a dashboard

  • Scenario: Your product dashboard includes a "Product Performance" bar chart showing sales by category. A certain product category, "Accessories," is no longer relevant for the current analysis, and you want to remove its data from the chart.
  • Inputs:
    • UI element: Product Performance Chart
    • Code: Category_Accessories
  • Result: The "Product Performance Chart" will refresh, and the data series for "Accessories" will be removed, allowing you to view other categories more clearly.

Example 3: Clearing projected data after actuals are available

  • Scenario: A "Financial Forecast" bar chart initially shows both "Actual Revenue" and "Projected Revenue." Once the actual revenue for a period is finalized, you want to remove the "Projected Revenue" data-set to avoid confusion.
  • Inputs:
    • UI element: Financial Forecast Chart
    • Code: Projected_Revenue
  • Result: The "Financial Forecast Chart" will update, and the "Projected Revenue" bars will disappear, leaving only the "Actual Revenue" data visible.