Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

499fa4efa8f7450a8f31b262002f05cc

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

0 stars0🌍 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