---
source: https://www.jointjs.com/demos/decision-tree-analysis
github: https://raw.githubusercontent.com/clientIO/joint-demos/main/decision-tree-analysis/README.md
generated: 2026-04-08
format: markdown
---

# JointJS+: Decision Tree Analysis <a href="https://www.jointjs.com/jointjs-plus"><img src="../jointjs-plus-badge.svg" alt="JointJS+" width="123" align="right" /></a>

Imagine you are playing a zero-sum game tournament (e.g. chess, checkers). Do you want to know what strategy you should choose to maximize your chances of winning? Should you play aggressively and possibly lose, or defensively and not win? Check out today's demo, which shows how to use the layout.TreeLayout plugin to build a decision tree analysis diagram.

This demo is also available online at [jointjs.com](https://jointjs.com/demos/decision-tree-analysis).

## Available Versions

- [JavaScript](./js/)

## Screenshot

![screenshot](./screenshot.png)
