ICE 6 Rendering Marks and Channels
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed