First Draft Electric Bar Chart
✓ Published0🌍 Public
This bar chart visualizes monthly electricity usage across multiple utility accounts, with bars colored by account number and highlighted in orange on hover. The chart is rendered with SVG using D3.js v6, employing `scaleBand` and `scaleLinear` for axes and positioning. It reads data from a CSV file via `d3.csv` and includes interactivity through D3’s `.on("mouseover")` and `.on("mouseout")` event handlers. Axis labels are added manually, while a legend is positioned within the SVG group, and transitions animate the bar color changes on mouseout.
AI-generated descriptionI started with https://vizhub.com/RED98310/a3ea8fbec4b64423a7797a418de4af57?edit=files and modified it.
MIT Licensed