Responding to Resize
✓ Published0🌍 Public
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 descriptionMIT Licensed