Skip to main content
100%

Assignment2-Area

✓ Published0🌍 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.
MIT Licensed

Similar vizzes