Skip to main content
100%

ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
TTejaswi@3271
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example shows the top 9 most profitable companies as a horizontal bar chart using React and D3. It loads CSV data from a GitHub gist, converts profit values to numbers, and renders SVG bars with axes. The visualization uses `d3.csv` for data loading, `scaleBand` and `scaleLinear` for scales, and maps over tick values to create gridlines and labels. React manages the component state with `useState` and `useEffect`, while `ReactDOM.render` mounts the chart. Styling includes custom colored ticks and marks set via CSS classes.

AI-generated description

creating a react app, data hangling

MIT Licensed

Similar vizzes