{"version":"1.0","type":"rich","title":"Reusable Examples - Pie Chart","description":"This example demonstrates a reusable pie chart built with D3.js v5, following the patterns from Mike Bostock's \"Towards Reusable Charts\" and the Pro D3.js methodology. It renders two separate pie charts within a single SVG container, using `d3.pie` and `d3.arc` to calculate and draw the slices with an inner radius for a donut effect. The chart includes a title and uses `d3.scaleOrdinal` with the category10 color scheme to distinguish data categories. The code shows a modular structure with separate functions for building the layout, shape, scales, and SVG, allowing the chart to be easily reused with different datasets.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ac85838dccfe491fa3428a566be0c040?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}