Ask AI
Skip to main content

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:

  1. Resetting a Sales Performance Chart:

    • Inputs:
      • UI element: Sales Performance Chart
      • Code: MonthlySales
    • Result: All the bars representing MonthlySales data in the Sales Performance Chart will disappear, making the chart empty for that specific dataset.
  2. Clearing Temporary User Activity Data:

    • Inputs:
      • UI element: User Activity Dashboard
      • Code: GuestSessions
    • Result: Any bars showing GuestSessions activity in the User Activity Dashboard will be removed, effectively hiding temporary guest data.
  3. Preparing a Project Progress Chart for a New Quarter:

    • Inputs:
      • UI element: Project Progress Chart
      • Code: Q4_Tasks
    • Result: The Q4_Tasks dataset within the Project Progress Chart will be cleared, allowing you to populate it with new data for the upcoming quarter without old data interfering.