Clear dataset of Bar chart
Function: Clear dataset of Bar chart
This action allows you to remove all data points from a specific dataset within a Bar Chart on your application page. This is useful for resetting a chart, clearing outdated information, or preparing a chart to be populated with new data.
Input
- UI element (PART): This is the specific Bar Chart component on your page from which you want to clear a dataset. You will typically select this directly from your application's user interface builder.
- Code (STRING): This is the unique identifier or "code" assigned to the specific dataset within the chosen Bar Chart that you wish to clear. Each dataset in a bar chart usually has a unique code to distinguish 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 by clearing the data points of the chosen dataset.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Clear dataset of Bar chart" action:
Example 1: Resetting a Sales Performance Segment
Imagine you have a "Sales Performance" dashboard with a bar chart showing sales figures for different regions. At the end of each quarter, you want to clear the previous quarter's data to prepare for new entries.
- Inputs:
- UI element: "Sales Performance Bar Chart"
- Code: "Q4_2023_Sales"
- Result: The "Q4_2023_Sales" dataset within the "Sales Performance Bar Chart" will have all its data points removed, making that segment of the chart empty and ready for new Q1 2024 data.
Example 2: Clearing Temporary Data in a Project Dashboard
You're managing a project dashboard with a bar chart visualizing "Task Progress." Sometimes, you might add temporary tasks for planning that you want to remove once the final plan is approved.
- Inputs:
- UI element: "Project Progress Chart"
- Code: "Temporary_Tasks_Phase_1"
- Result: The "Temporary_Tasks_Phase_1" dataset in the "Project Progress Chart" will be emptied, removing all its data points and cleaning up the chart display.
Example 3: Preparing an Inventory Chart for New Stock Updates
In an inventory management application, you have a bar chart displaying "Current Stock Levels" for various product categories. Before importing a new batch of inventory data, you want to clear the old "Incoming_Shipments" dataset to avoid confusion.
- Inputs:
- UI element: "Inventory Levels Chart"
- Code: "Incoming_Shipments"
- Result: The "Incoming_Shipments" dataset in the "Inventory Levels Chart" will be cleared, ensuring that only the most current stock information is displayed after the new data import.