Skip to main content
100%

Top 10

✓ Published0🌍 Public
Aaaizemberg
Last edited Dec 10, 2019
Created on Dec 10, 2019

The visualization ranks the top 10 U.S. fast-food chains by 2017 sales and store count, listing each chain’s name alongside two horizontal bars. Red bars encode annual sales in U.S. dollars, while blue bars encode the number of locations, with a linear scale mapping each metric to a fixed pixel width. Tooltips reveal exact values via SVG `title` elements. The code uses d3.v5 with `d3.select`, `d3.scaleLinear`, and data binding to append SVG text and rect elements, sourcing data from a gist.

AI-generated description

Similar vizzes