Ask AI
Skip to main content

Add data point to Bar chart

Function: Add data point to Bar chart

This action allows you to dynamically update a Bar chart UI element by adding new data points to it. This is useful for visualizing data that changes over time or needs to be updated based on user interactions or other system events. You can add points to an existing data series or create a new one if it doesn't already exist.

Input,

  • Bar chart UI element (Type: UI element, specifically a Bar chart)
    • Specify the Bar chart UI element on your page where you want to add a data point. This is a required input.
  • Code (Type: A piece of text)
    • This is the unique identifier for the dataset within your chosen Bar chart UI element. If a dataset with this code already exists, the data point will be added to it. If not, a new dataset will be created with this code, and the data point will be its first entry. This is a required input.
  • Point (Type: A piece of text)
    • This is the actual value or data point you want to add to the specified dataset in the Bar chart. This is a required input.

Output,

This action does not produce a direct output value. Instead, it modifies the specified Bar chart UI element directly on your page, updating its visual representation with the new data point.

Execution Flow,

Real-Life Examples,

  1. Tracking daily website visitors:

    • Inputs:
      • Bar chart UI element: "Website Traffic Chart"
      • Code: "Visitors"
      • Point: "1250"
    • Result: The "Website Traffic Chart" will update, adding "1250" as a new data point to the "Visitors" series, showing the visitor count for the current day.
  2. Adding a new product's sales figure to a quarterly performance chart:

    • Inputs:
      • Bar chart UI element: "Quarterly Sales Performance"
      • Code: "Product X Sales"
      • Point: "7500"
    • Result: If "Product X Sales" already exists, "7500" is added to its data. If not, a new bar representing "Product X Sales" with a value of "7500" is created on the "Quarterly Sales Performance" chart.
  3. Updating a project's task completion status:

    • Inputs:
      • Bar chart UI element: "Project Progress Overview"
      • Code: "Completed Tasks"
      • Point: "5"
    • Result: The "Project Progress Overview" chart will reflect an increase in the "Completed Tasks" count by "5", visually updating the project's progress.