Skip to main content
100%

World countries tree

✓ Published1🌍 Public
MMauradion
Last edited Jul 20, 2021
Created on May 20, 2021

This example visualizes hierarchical survey data as a radial tree, with each leaf node represented by a colored horizontal bar showing a percentage value and its associated words array listed underneath. Built with D3 v5 and SVG, the code uses `d3.hierarchy`, `d3.cluster`, and `d3.scaleLinear` to compute the layout and encode numeric values as bar heights. Labels and bars are positioned along the circular hierarchy, and the visualization loads data from a JSON file containing nested topic clusters with word lists, as well as support for panning and zooming via `d3.zoom`.

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