{"version":"1.0","type":"rich","title":"Q1_Dataviz_Piechart","description":"This pie chart visualizes the average car prices across different brands, segmented by fuel type, with data loaded from a CSV file. The visualization uses D3 v6’s `d3.pie` and `d3.arc` to generate SVG path slices, while labels show the brand name and average price using `labelArc.centroid`. The chart filters Tesla to show only electric models, and a separate SVG legend maps fuel types (Petrol, Diesel, Electric, Hybrid) to distinct colors. The code processes the CSV data with `d3.group` to compute averages per brand and fuel type before rendering.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3dfe1189afd6480687bfa7e2a6cac619?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}