In the previous lesson you added cards with AI and Cypher and a filter. Use that dashboard here. If you do not have a dashboard with cards yet, complete the previous lesson first.
In this lesson you will learn:
-
How to add a new dashboard page and name it
-
How to customize how cards look using the Results overview
Before you start, make sure you have completed the previous lesson and have a dashboard with at least one card.
Creating a new dashboard page
If you have not created any dashboards yet, you need to select Create from scratch to start building your first dashboard page.
Dashboard limit
If you have exceeded the dashboards limit for your tier, creating a new dashboard page will prompt you to upgrade your tier.
Either delete an existing dashboard or keep working on an existing dashboard.
To create a new dashboard page, go to the Dashboards menu and click on the New page button:
Give the page a clear name, such as "Stakeholders view", and click Create. You can rename it later by clicking the title in the dashboard editor.
Styling cards
Change how graph results look by opening the Results overview for a card and adjusting colors, sizes, and captions for node labels and relationship types.
Using Cypher queries for card creation
In the previous lesson you created cards using AI. For more control over data visualization, create cards using Cypher queries directly.
From your dashboard, click Add a card to open the card editor.
Use the card editor to define the card properties and paste your Cypher query into the Query field.
For example, create a card that shows which movies Tom Hanks has acted in:
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)
WHERE p.name = 'Tom Hanks'
RETURN p,r,mCheck your understanding
Adding a card with Cypher
You want a card that shows one specific actor and the movies they acted in. You already have the Cypher query and need the card to run exactly that query. How should you add the card?
-
❏ Describe the card in natural language in the card editor so the AI generates a query for that actor.
-
✓ Add a card, open the card editor, and paste your Cypher into the Query field.
-
❏ Open the Results overview for an existing card and paste your Cypher there.
-
❏ Create a new dashboard and pick a template that includes actor-movie cards.
Hint
The card editor has a Query field for running Cypher. The Results overview is for styling how results look, not for setting the query. Natural language would let the AI choose the query, which is not what you want here.
Solution
Add a card, open the card editor, and paste your Cypher into the Query field.
When you have a specific Cypher query and want the card to run it unchanged, use the Query field in the card editor. Use natural language when you are okay with the AI generating the query. Use the Results overview to change colors and labels, not to enter Cypher.
Summary
In this lesson you added a dashboard page, renamed it, and styled cards using the Results overview.
In the next lesson you will add aggregations such as counts and averages and choose chart types for ratings, genres, and actors.