tree=make_tree(remdb,ROOTID)// Convert rem database --> tree viz friendly form
render_html_tree(tree)// Render as HTML tree
tree
render_tree(tree,default_tree_layout)
render_tree(tree,{// layout algorithm for the tree graph
type:'indented',
direction:'LR',
indent:50,
getHeight:d=>5
})
graph=make_graph(remdb)// Convert rem database --> graph viz friendly form
render_graph(graph,{
type:'dagre',
rankdir:'TB',// The center of the graph by default
align:'DL',
nodesep:5,
ranksep:30,
controlPoints:true,
})
render_graph(graph,{
type:'circular',
radius:200
})
render_graph(graph,{
type:'force',
preventOverlap:true,
nodeStrength:-1000
})
render_graph(graph,{
type:'dagre',
rankdir:'LR',// The center of the graph by default
align:'DL',
nodesep:5,
ranksep:30,
controlPoints:true,
})
remdb=block_on_load(crawl_rem(ROOTID,100))// Crawl & block on result
// Could also this to lazily load in background instead of block:
// remdb = crawler.db
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.