Skip to main content
100%

ICE 6 Rendering Marks and Channels

✓ Published0🌍 Public
EEshwarreddyt
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from ICE6

This example shows a bar chart of the top 10 most populated states in India, using horizontal bars to encode population size. The chart loads data from a CSV file via `d3.csv` and renders with React and SVG. It uses `d3.scaleBand` for the y-axis state categories and `d3.scaleLinear` for the x-axis population values, with `d3.max` to determine the scale domain. Axes are drawn manually using SVG elements rather than d3 axis components, and gray grid lines are added for each tick value.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes