Skip to content

Commit f8c6fd7

Browse files
authored
Dashboard - Pie chart visualization (#701)
1 parent 0b6ea05 commit f8c6fd7

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Generic Start
101101
*** xref:dashboards/visualizations/table.adoc[Table]
102102
*** xref:dashboards/visualizations/linechart.adoc[Line chart]
103103
*** xref:dashboards/visualizations/barchart.adoc[Bar chart]
104+
*** xref:dashboards/visualizations/piechart.adoc[Pie chart]
104105
//** xref:dashboards/advanced-features/index.adoc[Advanced features]
105106
//*** xref:dashboards/advanced-features/parameters.adoc[Parameters and interactivity]
106107
//*** xref:dashboards/advanced-features/rule-based-styling.adoc[Rule-based styling]
Loading

modules/ROOT/pages/dashboards/visualizations/graph.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ Configure the graph layout and nodes, relationships, labels and colors to your l
88
You can drag and drop nodes in the displayed graph.
99

1010

11-
== Examples
12-
13-
=== Basic table
11+
== Example
1412

1513

1614
.Cypher query for a graph which displays products which are part of the "produce" category
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
= Pie chart
2+
:description: The Neo4j dashboard pie chart visualization.
3+
4+
A pie chart displays different categories and values as slices of a circular disc.
5+
Choose the following:
6+
7+
* *Category*: a text field. Categories are the labels of the pie slices.
8+
* *Value*: a numeric field. This determines the size of the slices.
9+
10+
== Example
11+
12+
13+
.Cypher query for a pie chart which displays the number of products per category
14+
[source,cypher]
15+
----
16+
MATCH (p:Product)-[:PART_OF]->(c:Category)
17+
RETURN c.categoryName AS Category, count(p) AS Products LIMIT 20
18+
----
19+
20+
.A pie chart displaying the number of products per category
21+
image::dashboards/visualization-pie-chart.png[]
22+
23+
24+
== Configuration
25+
26+
Select your **Category** for the pie slice labels and a **Value** for size of the pie slices.

modules/ROOT/pages/dashboards/visualizations/table.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Tables support the following additional features:
1717
When you hover over a table cell, a copy icon appears towards the end of the cell which lets you copy the content of the table cell to the clipboard.
1818

1919

20-
== Examples
20+
== Example
2121

22-
=== Basic table
22+
//=== Basic table
2323

2424
.Cypher query for a table which displays the number of products per category
2525
[source,cypher]

0 commit comments

Comments
 (0)