From the examples I have seen, is that they are mostly taking their data from a nodes array and a links array like this
nodes: [...Array(N).keys()].map(i => ({ id: i })),
links: [...Array(N).keys()]
.filter(id => id)
.map(id => ({
source: id,
target: Math.round(Math.random() * (id-1))
}))
If I run such query
MATCH (a:Actor:Actor)-[r:ACTED_IN]->(m:Movie)
WHERE m.year=1995
RETURN a as nodes,r as links,m
ORDER BY m.year ASC
LIMIT 10
I am getting more than 2 arrays back, to many properties etc.
Is there some sort of manual / example / best practice on how to prepare data for visualisation? Maybe special output functions?