Pie chart

A pie chart draws different categories and values in a circular disc layout. Choose the following:

  • Category: a text field. The labels on the pie slices.

  • Value: a numeric field. The size of the slices.

The pie chart can additionally be customized to become a donut chart, show categories as a legend, and to show the percentage of the total value of the pie. See Advanced settings for more information.

Examples

Basic pie chart

Match (p:Person)-[e]->(m:Movie)
RETURN m.title as Title, COUNT(p) as People
LIMIT 8
Pie Chart

Donut chart

MATCH (p:Person)-[e]->(m:Movie)
WHERE m.title = "Cloud Atlas"
WITH TYPE(e) as Role
RETURN Role, COUNT(Role) as Count
Donut Chart

Advanced settings

Name Type Default value Description

Show Legend

on/off

off

If set, shows a legend on the bottom of the visualization.

Auto-sort slices by value

on/off

off

If set, automatically sorts the pie slices in order of size.

Show Values in Slices

on/off

off

If set, shows the category values inside the pie slices.

Labels font size

Number

13

Defines the size of the font for internal and external labels on the pie.

Show categories next to Slices

on/off

off

If set, shows the category values next to the pie slices.

Enable interactivity

on/off

on

If set, turn on animations when a user hovers over a pie slice.

Color Scheme

List

The color scheme to use for the slices. Colors are assigned automatically (consequitevely) to the different categories returned by the Cypher® query.

Pie inner radius

Number

0

The radius of the "donut hole" inside the pie. If set to zero, no hole is present. If set to 0.99, the pie is almost completely visualized as a thin disc.

Slice padding angle (degrees)

Number

0

The angle between each pie slice reserved for white space. For example, when set to 3.6, there are 1/100th of the total circle space reserved between each slice.

Slice border with (px)

Number

0

The width of the border of each slice.

Margin Left (px)

Number

50

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

Margin Right (px)

Number

50

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

Margin Top (px)

Number

50

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

Margin Bottom (px)

Number

50

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

Hide Selections

on/off

off

If set, hides the property selector (footer 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.

Rule-based styling

Using the Rule-based styling menu, the following style rules can be applied to the pie chart:

  • The background color of a pie slice.