Viewing a saved revision (read-only)
24c917af5f9a46b7977402b9c3fdd04d
ice_7 , question 2
This pie chart visualizes the distribution of fuel types in a used-car dataset, with each slice encoded by a distinct color from D3's categorical scaleOrdinal scheme. The visualization is interactive: hovering over a segment displays a tooltip showing the fuel type and its exact count, while a dynamically generated legend maps colors to fuel categories for quick reference. Data is loaded from car_dataset.csv via d3.csv, and the chart is rendered with SVG in D3 v7, featuring smooth animated transitions. The tooltip and legend enhance accessibility and readability, making it easy to compare categorical proportions at a glance.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.