Skip to main content
100%

ICE-6: Rendering Marks and channels with Rect & D3

✓ Published0🌍 Public
Mmanvithareddykarra
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example visualizes the top 10 profit countries using a horizontal bar chart rendered as SVG in a React application. It displays country names on the y-axis and profit sales on the x-axis, with blue tick lines and axis labels. The code loads data from a CSV file using `d3.csv`, then uses `d3.scaleBand` and `d3.scaleLinear` to map values to `rect` marks. React manages the state and rendering, while D3 v7 handles data parsing and scales, with axes and bars drawn manually.

AI-generated description

creating a react app, data hangling

MIT Licensed

Similar vizzes