Skip to main content
100%

Akhil Pie Chart -Cars

✓ Published0🌍 Public
AAkhil Charugulla
Last edited Mar 28, 2024
Created on Mar 27, 2024
Forked from Pie Chart

This pie chart displays the aggregated selling price of cars grouped by make, with a legend and a data table alongside the visualization. The chart uses D3.js v7 to compute the pie layout and arc paths, while a sequential color scale maps each car make to a distinct color. The code loads CSV data, groups it by car make, and sums the prices using d3.group and d3.sum. Hovering over a segment reveals a tooltip with the make and total price. The SVG rendering includes an interactive legend and a styled HTML table, all set against a light blue background.

AI-generated description
MIT Licensed

Similar vizzes