Skip to main content
100%

Responding to Resize

✓ Published0🌍 Public
Ppaularl
Last edited Jan 26, 2020
Created on Jan 23, 2020

A bar chart ranks ten Brazilian electricity distributors by consumer count, using a horizontal categorical axis and a linear vertical scale. The visualization highlights a selected company in teal while others remain gray, responding to clicks that update the selection and re-render the chart via a callback. SVG rendering with `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` displays the data, while `d3.zoom` enables panning and zooming on the chart group. The chart also includes rotated axis labels and tooltips showing each company’s exact consumer numbers.

AI-generated description
MIT Licensed

Similar vizzes