{"version":"1.0","type":"rich","title":"Refactored Bar Chart with real data","description":"This example displays a horizontal bar chart of closing values for ten products, using data loaded from a CSV file. Built with React and rendered as SVG, it partitions the visualization into modular components: the `AxisBottom` and `AxisLeft` handle ticks and labels, while `Marks` draws each rectangle. D3’s `scaleBand` and `scaleLinear` map the categorical and numeric fields, and dimensions are scaled relative to a fixed margin. The chart loads real data via D3’s `csv` method, demonstrating a reusable, refactored structure.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a580069a80634a5383dfa0c81dd0e875?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}