Skip to main content
100%

Activity-9_Question-2

✓ Published1🌍 Public
Ttharunramula@gmail.com
Last edited Apr 22, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This example shows a D3.js area chart of average weekly temperatures, using a fixed sample dataset of seven days with values in Celsius. The chart renders as an SVG, with a steel-blue filled area beneath a line that plots each day’s temperature. The implementation uses a `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and a `d3.area` generator to create the path. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, and the chart includes labels for both axes.

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