Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-7.1

Public visualization

Viewing a saved revision (read-only)

e8bbfbedf44c4a82bf8ce199cea80871

Activity-7.1

0 stars0🌍 Public
VVasanth Krishna
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This example displays a pie chart showing the distribution of university tuition fees by country, with the title "University Tuition Distribution by Country". It loads data from a CSV file using `d3.csv`, then uses `d3.rollup` to compute the mean tuition fee per country. The chart is rendered as an SVG using D3’s `pie`, `arc`, and `scaleOrdinal` APIs, while a legend lists each country with its corresponding color and average fee. The code also demonstrates ES6 module import with `myMessage.js`.

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.