{"version":"1.0","type":"rich","title":"Week-6: In Class Exercise: Rendering Marks and Channels with React & D3","description":"This example visualizes carbon dioxide emissions in thousand metric tonnes for the top ten U.S. states during electricity generation in 2019, using a horizontal bar chart rendered with React and SVG. The chart displays state names on the y-axis and emission values on the x-axis, with blue tick lines for the quantitative scale. The code loads CSV data via `d3.csv`, applies a row-parsing function to convert emissions to numbers, and constructs the visualization using `scaleBand`, `scaleLinear`, and `max` from D3 v5. React state management with `useState` and `useEffect` handles data loading, while React components generate the SVG marks and gridlines.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8e6eb593029244749e9ce7128923e6b9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}