Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 2

Public visualization

Question 2

0 stars0🌍 Public
Aalapati98@gmail.com
Last edited Apr 29, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This example visualizes the average price of avocados over time, aggregating daily data into monthly averages. The chart uses an area plot with overlaid circular markers to highlight each monthly data point, rendered as SVG. The code loads data from a CSV file using `d3.csv`, aggregates it with `d3.rollups` and `d3.mean`, and scales time and price with `d3.scaleTime` and `d3.scaleLinear`. An interactive tooltip appears on hover, and axes are generated via `d3.axisBottom` and `d3.axisLeft`.

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.

Comments

Sign in to join the discussion.

MIT Licensed