CSCE5320 Project
✓ Published0🌍 Public
This example renders a horizontal bar chart that visualizes complaint counts by complaint type, sourced from a CSV file hosted on a GitHub Gist. Using D3.js v7, it loads the data with `d3.csv`, aggregates it via `d3.rollup` and `d3.sum`, and renders the bars as SVG rectangles with a linear x-scale and a band y-scale. Interactive hover effects change bar colors, and axes are added with `d3.axisBottom` and `d3.axisLeft`.
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