presentation
slug: step-chartCreates dynamic, interactive data visualizations from tabular data using the hbgChartMaker class. Transforms complex datasets into clear visual insights through a variety of chart types optimized for data analysis and presentation.
type (string) - Chart type to generate:
bar - Horizontal bar chartcolumn - Vertical bar chartline - Line chartscatter - Scatter plotbubble - Bubble chartheatmap - Heat map visualizationcentered_heatmap - Heatmap with diverging color scale around a central valuetreemap - Hierarchical rectangle-based visualizationwaterfall - Waterfall chart showing sequential changesx_axis (string) - Column to use for the x-axis categoriesy_axis (string) - Column to use for the y-axis valuestitle (string) - Chart titleseries (string) - Column to use for grouping data into seriesz_axis (string) - Column for bubble size (for bubble charts only)color_field (string) - Column determining color intensity (for heatmaps)options (object) - Additional chart configuration:
theme - Visual theme for the chart (default, dark, light)width - Chart width (default: 100%)height - Chart height (calculated based on data)show_grid - Whether to display grid lines (default: true)show_legend - Whether to display the legend (default: true)x_label - Custom x-axis labely_label - Custom y-axis labelx_scale - X-axis scale type (linear, log)y_scale - Y-axis scale type (linear, log)chart_id - Custom ID for the chart containerIdeal for comparing categorical data or time-based snapshots.
chart:
type: column # or bar for horizontal bars
x_axis: region
y_axis: revenue
series: product_category # optional for grouped bars
Best for showing trends over time or continuous data.
chart:
type: line
x_axis: month
y_axis: sales
series: product_line # optional for multiple lines
For exploring relationships between two (or three) variables.
chart:
type: scatter # or bubble
x_axis: age
y_axis: income
series: region # optional for grouping points
z_axis: customer_count # required for bubble charts
Visualize two-dimensional data with color intensity.
chart:
type: heatmap # or centered_heatmap
x_axis: month
y_axis: product
color_field: sales_variance # determines color intensity
Hierarchical visualization with nested rectangles.
chart:
type: treemap
x_axis: product_name # label field
y_axis: revenue # value field (size)
series: category # optional grouping field
color_field: growth # optional color intensity field
Sequential visualization of cumulative effect of changes.
chart:
type: waterfall
x_axis: expression # filter step expressions
y_axis: removed_count # values for each step
chart:
type: column
x_axis: month
y_axis: sales
title: "Monthly Sales Performance"
chart:
type: line
x_axis: date
y_axis: revenue
series: product_line
title: "Revenue Trends by Product Line"
options:
theme: dark
show_grid: true
x_scale: linear
y_scale: log
chart:
type: bubble
x_axis: market_share
y_axis: growth_rate
z_axis: revenue
series: region
title: "Market Analysis by Region"
chart:
type: heatmap
x_axis: day_of_week
y_axis: hour_of_day
color_field: transaction_count
title: "Transaction Volume Patterns"