# vega-hierarchy

> Hierarchical layout transforms for Vega dataflows.

Latest version **5.1.3** (published 2026-08-14) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install vega-hierarchy
pnpm add vega-hierarchy
yarn add vega-hierarchy
bun add vega-hierarchy
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 5.1.3 |
| Published | 2026-08-14 |
| First published | 2016-09-24 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 3 |
| Unpacked size | 63.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12006 |
| Author | Vega |
| Maintainers | domoritz, hydrosquall, jheer, arvindsatya1, lhermann |
| Keywords | vega, hierarchy, layout, tree, treemap, cluster, pack |

## Links

- npm: https://www.npmjs.com/package/vega-hierarchy
- Repository: https://github.com/vega/vega
- Homepage: https://github.com/vega/vega/tree/main/packages/vega-hierarchy#readme
- Issues: https://github.com/vega/vega/issues
- npm.io page: https://npm.io/package/vega-hierarchy

## Dependencies (3)

- [vega-util](https://npm.io/package/vega-util.md) ^2.1.3
- [d3-hierarchy](https://npm.io/package/d3-hierarchy.md) ^3.1.2
- [vega-dataflow](https://npm.io/package/vega-dataflow.md) ^6.1.3

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 5.1.3 (latest) — 2026-08-14
- 4.1.4 (v5-maintenance) — 2026-01-06
- 5.1.2 — 2026-07-22
- 5.1.1 — 2026-07-21
- 5.1.0 — 2025-09-16
- 5.0.0 — 2025-03-27
- 4.1.3 — 2025-01-24
- 4.1.2 — 2024-06-14
- 4.1.1 — 2023-03-01
- 4.1.0 — 2022-03-11
- 4.0.9 — 2020-09-23
- 4.0.8 — 2020-08-31
- 4.0.7 — 2020-08-18
- 4.0.6 — 2020-05-23
- 4.0.5 — 2020-04-27
- … 18 more at https://npm.io/package/vega-hierarchy/versions

## README

# vega-hierarchy

Hierarchical layout transforms for Vega dataflows.

This pacakge provides the following Vega data transforms:

- [**Nest**](https://vega.github.io/vega/docs/transforms/nest/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Nest.js "Source")
- [**Pack**](https://vega.github.io/vega/docs/transforms/pack/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Pack.js "Source")
- [**Partition**](https://vega.github.io/vega/docs/transforms/partition/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Partition.js "Source")
- [**Stratify**](https://vega.github.io/vega/docs/transforms/stratify/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Stratify.js "Source")
- [**Tree**](https://vega.github.io/vega/docs/transforms/tree/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Tree.js "Source")
- [**Treemap**](https://vega.github.io/vega/docs/transforms/treemap/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Treemap.js "Source")
- [**TreeLinks**](https://vega.github.io/vega/docs/transforms/treelinks/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/TreeLinks.js "Source")

---
_Source: https://npm.io/package/vega-hierarchy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
