-
JamesJune 15, 2016 at 5:30 pm #6205
Hello,
I’m brand new here and am just getting started. I have an application I want to use Halo for, but wonder if I’m being too ambitious. I have ~20,000 nodes and ~100 entities for the arcs.
Can halo scale up to this level?
Also, I would want the visualization embedded in a larger web document, without all the resizing, etc. parameters. Is there any code available that has a directly embeddable visualization?
Thank you!
jamesvizulyJune 15, 2016 at 5:36 pm #6206Hi James,
Let me answer your question in reverse order.
You can just take the test container that it comes with and strip away the other code. You will need to set some parameters like data and size etc, but essentially all you need is this:
// Here we set our <code>viz</code> variable by instantiating the <code>vizuly.viz.corona</code> function. // All vizuly components require a parent DOM element at initialization so they know where to inject their display elements. viz = vizuly.viz.halo_cluster(document.getElementById("viz_container")); viz.data(data) .width(800).height(600) // Initial display size .haloKey(function (d) { return d.CMTE_ID; }) // The property that determines each PAC .nodeKey(function (d) { return d.CAND_ID; }) // The property that determines Candidate .nodeGroupKey(function (d) { return d.PTY; }) // The property that determines candidate Par
As for your other question. The halo could support 20,000 nodes, but without a very large monitor it will probably look like a big ball of yarn 😉 Chances are you would want to optimize some of the mouse over transitions as well to speed things up.
I hope that helps.
– Tom
JamesJune 15, 2016 at 5:51 pm #6207Thanks, Tom!
I’ll give it a try. I’ll probably be back with more questions. 😉
james
vizulyJune 15, 2016 at 7:50 pm #6208Sure! Ask away, and I will do my best to point you in the right direction. If you start hitting some performance issues, try removing the transition() statements and just use straight select() statements on the mouse events in the theme.
Tom
-
|
You must be logged in to reply to this topic.