{"version":"1.0","type":"rich","title":"D3 Course Code Along - Colour and Size Legend","description":"This visualization demonstrates two interactive legends built with D3 v5: a color legend mapping categorical fruit names to distinct hues, and a size legend using a square-root scale to represent numeric values. The SVG rendering animates circle radii and colors using `transition().duration(1000)`, while legends update dynamically through enter/merge/exit selections. Code is organized as reusable modules (`colorLegend.js`, `sizeLegend.js`) invoked via `selection.call()`, with data sourced from CSV files.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4448ff17901d427194035d8f26ca7750?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}