Clear x-axis of Bar chart
Function: Clear x-axis of Bar chart
This action allows you to quickly remove all the data points displayed on the horizontal (x) axis of a Bar Chart in your application. This is useful when you want to reset a chart, prepare it for new data, or simply clear its current display.
Input
- UI element: This is the specific Bar Chart component on your application screen that you want to modify. You need to select the Bar Chart whose x-axis you wish to clear.
Output
This action does not produce any direct output values. Its effect is a visual change to the selected Bar Chart within your application.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Clear x-axis of Bar chart" action:
-
Resetting a Sales Performance Chart:
- Scenario: You have a "Sales Performance by Month" bar chart. After applying various filters (e.g., by region, product type), you want a button to quickly clear the chart and show it empty before applying new filters.
- Inputs:
- UI element:
Sales Performance by Month Chart
- UI element:
- Result: When the button is clicked, the "Sales Performance by Month Chart" will instantly clear all month labels and corresponding sales bars from its horizontal axis, appearing empty and ready for new data.
-
Preparing a Daily Task Completion Chart for a New Day:
- Scenario: At the end of each day, you want to clear a "Daily Tasks Completed" bar chart so that it's ready to track tasks for the next day without showing old data.
- Inputs:
- UI element:
Daily Tasks Completed Chart
- UI element:
- Result: An automated action (e.g., triggered by a daily schedule) will clear the "Daily Tasks Completed Chart," removing all previous task entries from its x-axis.
-
Dynamically Loading Data into a Dashboard Chart:
- Scenario: You have a dashboard with a "Website Traffic Sources" bar chart that loads data based on user selections from a dropdown. Before new data is loaded, you want to clear the previous display.
- Inputs:
- UI element:
Website Traffic Sources Chart
- UI element:
- Result: Whenever a user makes a new selection in the dropdown, the "Website Traffic Sources Chart" will first clear its x-axis, ensuring a clean slate before the new traffic source data is fetched and displayed.