Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Countries Tree

Public visualization

Viewing a saved revision (read-only)

02e26819bc224a75aee84e84cf5331f3

Fork of World Countries Tree

0 stars0🌍 Public
Aamorenos25
Last edited Aug 2, 2022
Created on Aug 2, 2022

This example visualizes a decision tree from JSON data, using a horizontal icicle layout to show the hierarchy of classification rules and their predicted outcomes. The visualization employs D3.js v5 APIs including `tree`, `hierarchy`, and `linkHorizontal` to compute the layout and draw the connecting links as SVG paths. Zooming and panning functionality is implemented through the `zoom` event, which applies an SVG transform to the main group. The tree’s branching nodes display the split conditions, while leaf nodes show numeric prediction values, all rendered with a custom Playfair Display font.

AI-generated description