{"version":"1.0","type":"rich","title":"Week-6: In Class Exercise: Rendering Marks and Channels with React & D3","description":"A horizontal bar chart displays carbon dioxide emissions in thousand metric tonnes for ten states during 2019 electricity generation, sourced from a CSV file via `d3.csv`. Built with React and D3 v5, it renders SVG rectangles using `scaleBand` for the y-axis states and `scaleLinear` for the x-axis emission values, with custom tick marks and labels. The chart’s axes and bars are generated declaratively through React’s `map` over the data array, while D3’s `max` and scale functions handle the domain calculations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/22e3bb9abdd34db984db22ad94af1050?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}