Bar Chart
Bar chart to compare values across categories.
Bar Chart
Graph
Creates a bar chart visualization to compare values across different categories. The function takes x and y data inputs and generates a bar chart where values are aggregated and displayed as bars for easy comparison across categories.
Inputs
- x
- The categorical data for the x-axis representing different categories to be compared
- y
- The quantitative data for the y-axis representing values to be aggregated and displayed as bar heights
Inputs Types
Input | Types |
---|---|
x |
List , DataSeries , NDArray , DataRecords , DataFrame |
y |
List , DataSeries , NDArray , DataRecords , DataFrame |
You can check the list of supported types here: Available Type Hints.
Outputs
- x
- The processed categorical data used for the x-axis of the bar chart
- y
- The processed quantitative data used for the y-axis of the bar chart
Outputs Types
Output | Types |
---|---|
x |
List , DataSeries , NDArray , DataRecords , DataFrame |
y |
List , DataSeries , NDArray , DataRecords , DataFrame |
You can check the list of supported types here: Available Type Hints.
Options
The Bar Chart brick contains some changeable options:
- 'x' data field
- Specifies the field name to use for x-axis categorical data (default: "x")
- 'y' data field
- Specifies the field name to use for y-axis quantitative data (default: "y")
- 'y' data aggregation
- Determines how y-axis values are aggregated across categories - options include sum, mean, max, min, count or stdev (sample standard deviation)
Brick Info
version
v0.1.4
python
3.10,
3.11,
3.12,
3.13
requirements
-
-