{"version":"1.0","type":"rich","title":"rendering data with react","description":"This example shows the named CSS colors from a CSV file as a vertical stack of horizontal color bars, each rendered as a colored `<div>` element. The React component uses the `useState` and `useEffect` hooks to load the data with `d3.csv` and trigger a re-render once the data arrives. It maps over each row and assigns the `RGB hex value` to the `backgroundColor` style, with fixed dimensions of 960 pixels wide and 5 pixels tall per bar.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c4182bc276314dac988a35441c6b44ab?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}