{"version":"1.0","type":"rich","title":"Bar Chart with D3 and React","description":"This example displays product ratings by subcategory in a horizontal bar chart. Each rectangle’s length corresponds to a product’s numeric rating, with axes labeled using D3’s `scaleLinear`, `scaleBand`, and `axisLeft`/`axisBottom` functions. Built with React and D3 v5, the chart loads data from a CSV file via `d3.csv`, then renders the SVG directly through React’s `rect` elements. The code uses D3’s `select` and `call` methods to apply axis generators, while React manages state and the rendering lifecycle.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ae8b07018e564602920f7cee2caf8cb2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}