---
layout: example
title: Tree Layout Example
permalink: /examples/tree-layout/index.html
spec: tree-layout
image: /examples/img/tree-layout.png
---

A node-link tree diagram of classes in a software package hierarchy, positioned in Cartesian coordinates using Vega's [tree](../../docs/transforms/tree) transform. Adjust the parameters to see layouts suitable for general trees or [cluster dendrograms](https://en.wikipedia.org/wiki/Dendrogram).

{% include example spec=page.spec %}
