Data visualization ICE-6: Rendering Marks and Channels with React & D3
✓ Published1🌍 Public
RRohithReddy-thoughts
Last edited Mar 8, 2022
Created on Mar 8, 2022
This bar chart displays the top 10 most-liked companies for crypto, based on social sentiment analysis data loaded from a CSV file. The visualization uses React and D3.js v5 to render SVG marks and channels, with a band scale for the categorical y-axis and a linear scale for the quantitative x-axis. Each company is represented as a rectangular bar, with the width encoding the number of likes, and axis ticks are generated using `scaleLinear.ticks`. The chart includes a styled title and uses a custom React component with `useState` and `useEffect` to fetch and process the data.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed