Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CSV Dataset Test

Public visualization

Viewing a saved revision (read-only)

c0178b4cfdf149958cc8949afe49082d

Fork of CSV Dataset Test

0 stars2🌍 Public
Wweird_danger
Last edited Oct 15, 2024
Created on Sep 7, 2024

This fork of the CSV dataset template renders a bar chart of population estimates for select countries, sourced from the penguins dataset’s CSV-loading pattern. The chart uses `d3.scaleLinear` and `d3.scaleBand` to map populations to bar widths and countries to vertical positions, with axes from `d3.axisLeft` and `d3.axisBottom`. Data is parsed in `index.js` by converting each population string to a number and multiplying by 1000, then drawn as SVG rectangles.

AI-generated description

The Penguins Dataset, loaded and parsed as CSV.

Fork and modify this template to import your data to VizHub and export it for use in other vizzes! To do that:

  • Fork this viz
  • Clear out the README
  • Update the README with details about your dataset (including original source)
  • Replace data.csv with your own data
  • Replace the parsing logic in index.js with your own
  • Set the custom URL so you can import from it easily

Challenge

  • Find 3 datasets on a topic you are interested in
  • For each of those, fork this viz and replace the data
  • Parse the quantitative attributes into numbers
  • Update README.md to indicate the original data source