Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CSV Dataset Template - Penguins

Public visualization

Fork of CSV Dataset Template - Penguins

0 stars0🌍 Public
Ppmbhupathibalu@gmail.com
Last edited Apr 1, 2024
Created on Apr 1, 2024

This example renders a hierarchical tree visualization of Indian agricultural data from a CSV dataset. The visualization shows root and child nodes representing crop areas, with the tree layout computed by `d3.tree()` and rendered as an SVG with links drawn via `d3.linkHorizontal()`. The code fetches data from a remote URL using `d3.csv`, parses quantitative area values with `parseFloat`, and applies node styling through D3 selections and CSS classes. The tree serves as a template for importing and adapting custom datasets into VizHub.

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

Comments

Sign in to join the discussion.

MIT Licensed