Ask AI
Skip to main content

Clear dataset of Line chart

Function: Clear dataset of Line chart

This action allows you to remove all data points from a specific dataset within a Line Chart UI element on your application page. This is useful for resetting a chart, preparing it for new data, or temporarily hiding information without deleting the chart itself.

Input

  • UI element (PART): This is the Line Chart component on your page that you want to modify. You'll select the specific chart from your application's user interface.
  • Code (STRING): This is a unique identifier (a name or code) for the specific dataset within the chosen Line Chart that you wish to clear.

Execution Flow

Real-Life Examples

Example 1: Resetting a Sales Trend Chart

Imagine you have a dashboard showing monthly sales trends, and you want to clear the data for a specific product line to prepare for new quarterly data.

  • Inputs:
    • UI element: Sales Trend Line Chart (the Line Chart component on your dashboard)
    • Code: ProductA_Sales (the identifier for the dataset showing sales figures for Product A)
  • Result: The "ProductA_Sales" line on the "Sales Trend Line Chart" will become empty, removing all previously displayed sales data points for Product A.

Example 2: Clearing a User Activity Log

You might have a chart displaying various user activities, and you need to clear the data for "Failed Logins" after resolving an issue, to start monitoring fresh data.

  • Inputs:
    • UI element: User Activity Chart (a Line Chart displaying user actions over time)
    • Code: FailedLogins (the identifier for the dataset tracking failed login attempts)
  • Result: The "FailedLogins" line on the "User Activity Chart" will be cleared, effectively resetting the visual log of failed login attempts.

Example 3: Preparing a Stock Price Comparison Chart

If you're comparing different stock prices in a chart and want to remove one company's historical data to replace it with updated real-time feeds.

  • Inputs:
    • UI element: Stock Comparison Chart (a Line Chart used to compare different stock prices)
    • Code: GOOG_Price (the identifier for the dataset showing Google's stock price)
  • Result: The "GOOG_Price" line on the "Stock Comparison Chart" will be emptied, allowing you to load new or updated Google stock data without mixing it with old values.