Skip to main content
100%

sample

✓ Published1🌍 Public
YYeshwanth963@gmail.com
Last edited Apr 24, 2024
Created on Apr 24, 2024
Forked from t2

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes