Skip to main content
100%

Activity-7.1

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

Similar vizzes