sample
✓ Published1🌍 Public
This example visualizes Indian agricultural data from a GitHub-hosted CSV, showing the relationship between cultivated area and rice production through a red dot scatter plot. It also includes a second view with a steel-blue bar chart displaying rice production across years using a band scale. The code uses D3 v6 APIs including `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, `d3.axisLeft`, and `d3.max` to map data values to SVG positions.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed