Treemap

A treemap chart renders hierarchical data in a nested rectangle layout. It has two fields:

  • Path: a list of strings. This represents the hierarchy (from highest to lowest level).

  • Value: a number that matches the size of the element at the lowest level. Sizes of non-leaf levels are equal to the sum of their children.

Examples

Basic treemap

MATCH path=(:Company{name:'NeoDash'})-[:HAS_DEPARTMENT*]->(:Department)
WITH nodes(path) as no
WITH no, last(no) as leaf
WITH  [n IN no[..-1] | n.name] AS result, sum(leaf.employees) as val
RETURN result, val
Treemap Chart

Advanced settings

Name Type Default value Description

Enable interactivity

on/off

on

If set, turns on animations when a user hovers over a rectangle.

Color Scheme

List

The color scheme to use for the rectangle. Colors are assigned automatically for each of the sub-hierarchies.

Rectangle border width (px)

Number

0

The width of the border of each rectangle.

Margin Left (px)

Number

24

The margin in pixels on the left side of the visualization.

Margin Right (px)

Number

24

The margin in pixels on the right side of the visualization.

Margin Top (px)

Number

24

The margin in pixels on the top side of the visualization.

Margin Bottom (px)

Number

40

The margin in pixels on the bottom side of the visualization.

Auto-run query

on/off

on

If set, automatically runs the query when the report is displayed. Otherwise, the query is displayed and must be executed manually.

Report Description

Markdown text

If set, adds a button to the report header that opens a pop-up. The pop-up contains the rendered Markdown from this setting.