Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 17, 2023
Created on Jul 15, 2023
Forked from Hello VizHub

This bar chart displays the elevations of 20 mountain peaks, using horizontal bars to compare their heights. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The SVG rendering includes custom axis components and rectangular marks with tooltips, fed by data loaded from a CSV file via the `useData` hook. The chart labels the axes with a custom format that abbreviates large numbers, and the data is sourced from a gist published by the author.

AI-generated description

Bar Chart using D3.js

MIT Licensed

Similar vizzes