Bar Chart
✓ Published0🌍 Public
This bar chart displays the elevations of the 20 highest mountain peaks, with the Y-axis listing mountain names and the X-axis showing elevation in feet. Built with React and D3 v5, it uses `scaleBand` for the categorical Y-axis, `scaleLinear` for the numeric X-axis, and `format` to abbreviate tick labels. Data loads asynchronously from a CSV file via `d3.csv`, and SVG rectangles render each bar with a native `<title>` element for tooltips.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed