{"version":"1.0","type":"rich","title":"Dataviz 2020_Ep20 - 12. Rendering Data Basics (with React and D3)","description":"This example renders a horizontal striped chart of CSS named colors, with each row displaying the RGB hex value directly as its background color. The visualization loads the data from a CSV file hosted as a GitHub gist using D3’s `csv` utility, while React manages the component state and conditional rendering. A `useEffect` hook triggers the asynchronous data fetch, showing a loading message until the data arrives, then maps each color entry to a div with fixed dimensions and a backgroundColor style. The code demonstrates a basic integration of React and D3 for data loading and DOM rendering.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/190e83c5c0c94a85a406b9eb272a3e64?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}