Skip to main content
Public

Share visualization

Loading preview…

Hierarchical Horizontal Bar Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Hierarchical Horizontal Bar Chart

0
SStuart Sessions
Last edited May 1, 2024
Created on May 1, 2024

This example presents a hierarchical horizontal bar chart that visualizes nested data as a drill-down navigation. Users click a bar to descend into its children or click the background to return to the parent level, with bars and text animating through position and opacity transitions. The visualization is built with D3 v3, using `d3.layout.partition` to compute the tree layout, `d3.svg.axis` for the scale, and `transition.attr` tweening to animate changes. It loads JSON data from a remote GitHub Gist and uses SVG for rendering, with color distinguishing parent from child nodes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed