Skip to main content
100%

Task_9_10_Area_Plot

✓ Published0🌍 Public
PPradhyumna Poralla
Last edited Apr 22, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This example visualizes the population of India from 1950 to 2020 as a smooth area chart, combining a black line for the trend with a blue shaded region beneath it. The visualization uses D3 v5 with SVG rendering, employing `d3.csv` to load external data, `d3.scaleLinear` for both axes, and `d3.area` with `d3.curveBasis` to generate the curved area. Axis labels and ticks are styled via CSS, and the chart is positioned within an SVG using margin conventions.

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