Skip to main content
100%

Fork of ICE-6: Rendering Top Ten Crupto currencies with React & D3

✓ Published0🌍 Public
Ppranatiyv
Last edited Mar 7, 2022
Created on Mar 7, 2022

This visualization displays the top ten cryptocurrencies by price as a horizontal bar chart. The React component loads its data from a CSV file using D3's `csv` function. D3's `scaleBand` and `scaleLinear` encode the categorical coin names and the continuous price values, respectively. The chart is rendered as an SVG, with bars drawn as `rect` elements. The code uses React's `useState` and `useEffect` hooks to fetch and manage the data, and the final visualization is mounted into the DOM with `ReactDOM.render`.

AI-generated description
MIT Licensed

Similar vizzes