Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Responsive Bar Chart

Public visualization

Viewing a saved revision (read-only)

77d6a71f45e1470dbdebb9e85537857f

Fork of Fork of Responsive Bar Chart

0 stars0🌍 Public
AAamir Hameed mir
Last edited Apr 29, 2024
Created on Apr 29, 2024

This bar chart displays categorical data as vertical bars, encoded with D3 scales for position and height. The visualization uses `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and updates bar rectangles via a data join. It integrates the `@curran/responsive-axes` library to render labeled axes with configurable margins and offsets, plus an inner background rectangle. The chart is responsive, recalculating scales and bar geometry based on the supplied `width`, `height`, and margin parameters, with padding controlling bar spacing.

AI-generated description

A responsive bar chart.