Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2-Area

Public visualization

Viewing a saved revision (read-only)

d99759da1a2249a3bddddce1ce516a1b

Assignment2-Area

0 stars0🌍 Public
Llokesh kautharapu
Last edited Jul 13, 2024
Created on Jul 13, 2024
Forked from Hello VizHub

This example shows a direct comparison of monthly car sales between Toyota and Ford as two layered area charts. The visualization uses D3 v6 to load CSV data from a GitHub gist, transform the monthly sales figures, and render smooth areas with the `area()` generator and `curveBasis` interpolation. Scales are defined with `scalePoint` for months and `scaleLinear` for sales values, with axes and a legend appended to the SVG. Both areas are filled in distinct colors with partial opacity to show overlap between the two brands.

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.