Ask AI
Skip to main content

Clear x-axis of Bar chart

Function: Clear x-axis of Bar chart

This action helps you reset the horizontal axis (x-axis) of a Bar Chart in your application. When you clear the x-axis, any data points or labels previously displayed on it will be removed, making the chart appear empty or ready for new data. This is useful for dynamically updating charts or providing a "reset" option to your users.

Input,

  • UI element (PART): This is the specific Bar Chart component on your page that you want to modify. You need to select the Bar Chart widget from your application's design. This input is mandatory.

Output,

This action does not produce a direct output value. Instead, it modifies the selected Bar Chart UI element by clearing its x-axis.

Execution Flow,

Real-Life Examples,

  • Example 1: Resetting a Sales Performance Chart Imagine you have a dashboard showing sales performance by product. You want to allow users to clear the chart and view new data based on different filters.

    • Inputs:
      • UI element: Sales_Performance_Bar_Chart (a Bar Chart widget on your dashboard)
    • Result: The Sales_Performance_Bar_Chart will have its x-axis cleared, removing all sales figures and product names, making it ready to display new data based on a different filter selection.
  • Example 2: Preparing a Chart for New Data Entry Consider an application where users input monthly expenses. After they submit their expenses for a month, you want to clear the expense chart to prepare it for the next month's data.

    • Inputs:
      • UI element: Monthly_Expenses_Chart (a Bar Chart used for tracking expenses)
    • Result: The Monthly_Expenses_Chart will be emptied of its current expense categories and values on the x-axis, allowing the user to input new monthly expense data from scratch.
  • Example 3: Clearing a Chart After Data Submission In a survey application, you might temporarily display survey results in a bar chart. Once the user submits their responses, you want to clear the chart to prevent confusion for the next participant.

    • Inputs:
      • UI element: Survey_Results_Bar_Chart (a Bar Chart displaying temporary survey responses)
    • Result: After a user submits their survey, the Survey_Results_Bar_Chart will have its x-axis cleared, removing the temporary response data and preparing the chart for the next survey participant or a new set of results.