Skip to main content
100%

ICE 7 : Task 4 (Area Chart)

✓ Published0🌍 Public
NNITIN0601
Last edited Mar 28, 2022
Created on Mar 28, 2022

This example visualizes Tesla sales by year using an area chart. The view shows a smoothed curve with a filled blue region beneath it, plotted over time on an SVG canvas. It loads CSV data from a GitHub gist and parses dates with `d3.timeParse`. The visualization uses D3 v5 scales (`scaleTime`, `scaleLinear`), axes (`axisLeft`, `axisBottom`), and generators (`area`, `line`) with `curveBasis` for smoothing. Gridlines and rotated axis labels clarify the quantitative and temporal ranges.

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