Ask AI
Skip to main content

Add x-axis point to Bar chart

Function: Add x-axis point to Bar chart

This action allows you to add a new category or label to the horizontal (X) axis of a Bar Chart in your application. This is useful when you need to expand your chart to include new data points, such as a new month, product, or region, without having to recreate the entire chart.

Input

  • UI element (Bar Chart): The specific Bar Chart component on your page where you want to add a new point to its horizontal axis. You will select this directly from your application's UI.
  • Point (A piece of text): The text label you want to display as the new category on the X-axis. For example, "December", "Product C", or "East Region".

Output

This action does not produce a direct output value that can be used by subsequent actions. Instead, its effect is to modify the selected Bar Chart by adding the specified point to its X-axis.

Execution Flow

Real-Life Examples

  1. Adding a New Month to a Sales Report Chart

    • Inputs:
      • UI element (Bar Chart): "Monthly Sales Performance Chart"
      • Point (A piece of text): "December"
    • Result: The "Monthly Sales Performance Chart" will now display "December" as a new category on its horizontal axis, allowing you to add sales data for that month.
  2. Expanding a Product Inventory Chart

    • Inputs:
      • UI element (Bar Chart): "Product Stock Levels Chart"
      • Point (A piece of text): "Product Z"
    • Result: The "Product Stock Levels Chart" will be updated to include "Product Z" on its X-axis, making it ready to visualize the stock quantity for this new product.
  3. Including a New Region in a Customer Distribution Chart

    • Inputs:
      • UI element (Bar Chart): "Customer Distribution by Region Chart"
      • Point (A piece of text): "Southwest"
    • Result: The "Customer Distribution by Region Chart" will now feature "Southwest" as an additional region on its horizontal axis, enabling you to track customer numbers for this new area.