🌍 Public
Viewing a saved revision (read-only)
f48d7f3a96e844598e95edfd2cf9df5e
Pie Chart Housing Data
This pie chart visualizes the distribution of median housing prices across eight income brackets, ranging from under $82,000 to $442,000 or more. Each slice represents a price range, with its size proportional to the number of homes in that category. The visualization uses d3.pie() and d3.arc() to generate the chart, while d3.scaleOrdinal with a custom color range distinguishes the segments. A legend with colored squares and labels is added using SVG rect and text elements, and the data is embedded directly as a JavaScript object rather than loaded from an external file.
AI-generated description