Clear dataset of Bar chart
Function: Clear dataset of Bar chart
This function allows you to remove all data points from a specific dataset within a Bar Chart UI element on your application page. It's useful for resetting chart data, preparing for new data, or clearing temporary information displayed in a bar chart.
Input
- UI element (PART): The specific Bar Chart on your page that you want to modify. This is the visual component where your data is displayed. (Required)
- Code (STRING): The unique identifier (code) of the dataset within the Bar Chart that you wish to clear. Each dataset in a bar chart can have a unique code to distinguish it. (Required)
Output
This function performs an action directly on the specified Bar Chart UI element. It does not return any specific data or value.
Execution Flow
Real-Life Examples
Here are some practical examples of how you might use this function:
-
Resetting a Sales Performance Chart:
- Inputs:
- UI element:
Sales Performance Chart - Code:
MonthlySales
- UI element:
- Result: All the bars representing
MonthlySalesdata in theSales Performance Chartwill disappear, making the chart empty for that specific dataset.
- Inputs:
-
Clearing Temporary User Activity Data:
- Inputs:
- UI element:
User Activity Dashboard - Code:
GuestSessions
- UI element:
- Result: Any bars showing
GuestSessionsactivity in theUser Activity Dashboardwill be removed, effectively hiding temporary guest data.
- Inputs:
-
Preparing a Project Progress Chart for a New Quarter:
- Inputs:
- UI element:
Project Progress Chart - Code:
Q4_Tasks
- UI element:
- Result: The
Q4_Tasksdataset within theProject Progress Chartwill be cleared, allowing you to populate it with new data for the upcoming quarter without old data interfering.
- Inputs: