{"version":"1.0","type":"rich","title":"cannavis1","description":"This example shows a D3.js pie chart built within a React application for visualizing the chemical composition of cannabis strains. It displays the percentage of each compound as a labeled slice of the pie, with the strain name shown on a button. The visualization is rendered using SVG and React function components, contrasting two approaches: one uses a React Hook to manage the D3 drawing lifecycle, while the other uses pure, non-side-effect SVG rendering. The chart uses `d3.pie()` and `d3.arc()` to compute and draw the arcs, with `d3.scaleOrdinal(d3.schemeCategory10)` for color and `d3.format('.2f')` for label formatting.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7899c9a25f784919bd95c34cc8e3861b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}