Line chart
You can use a line chart to draw one or more lines in a two-dimensional plane. It has two numeric fields:
-
Dimension: The values used as the x-axis.
-
Value: The values used on the y-axis.
Select a horizontal segment of the line chart to zoom in. Use the reload button to reset the line chart zoom. |
Cypher examples
Basic line chart
Cypher query for a line chart which displays the number of product categories by order dates
MATCH (o:Order)-[ORDERS]->(p:Product)-[:PART_OF]->(c:Category)
WITH o.orderDate AS orderDate, count(DISTINCT c) AS categoryCount
RETURN orderDate, categoryCount
ORDER BY orderDate
LIMIT 20

Figure 1. A line chart displaying the number of product categories by order dates
Multi-line chart
Cypher query for a line chart which displays the number of product categories and the product quantity by order dates
MATCH (o:Order)-[or:ORDERS]->(p:Product)-[:PART_OF]->(c:Category)
WITH o.orderDate AS orderDate, count(DISTINCT c) AS categoryCount, sum(or.quantity) AS Quantity
RETURN orderDate, categoryCount, Quantity
ORDER BY orderDate
LIMIT 20

Figure 2. A line chart displaying the number of product categories and the product quantity by order dates