{"version":"1.0","type":"rich","title":"MasteringD3js_ReuseProD3_Ch2 pt2.2a","description":"Reusable D3 chart functions build SVG bar charts from an array of four string values, rendering yellow background rectangles with blue bars in separate containers for two chart instances. The code demonstrates the transition from D3 v3 to v5 while implementing the ProD3 reusable chart pattern, using `selection.each`, `selection.enter`, and `selection.call` to structure modular chart components.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/17ae08f5e7004128b59ef1bba0216bf8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}