D3.js Bar Chart
✓ Published0🌍 Public
This example visualizes the number of unique Airbnb hosts associated with each bed type and cancellation policy, rendering two separate bar charts as SVGs. The charts use D3.js v4 APIs including `d3.csv`, `d3.nest`, `d3.set`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` to process the remote CSV data and draw axes and rectangles. Interactive hover effects change bar colors, and clicking a bar triggers an alert displaying the count. The visualization is built as a React application with static SVG markup.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed