Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Fork of Responsive Bar Chart

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed