Interactive graph visualization in Julia

506 views
Skip to first unread message

Weijian Zhang

unread,
Nov 30, 2015, 7:25:40 AM11/30/15
to julia-users
Dear all,

I really like the force-directed graph example in d3. See http://bl.ocks.org/mbostock/4062045
A user can drag the nodes and move the graph around.

I am wondering if we can do something similar just with Julia? Is there a Julia package for this?

Thanks,

Weijian


Andreas Lobinger

unread,
Nov 30, 2015, 7:37:04 AM11/30/15
to julia-users

There is some work on interfacing D3 with julia -> https://github.com/jverzani/DThree.jl

Simon Danisch

unread,
Nov 30, 2015, 8:11:13 AM11/30/15
to julia-users
If you have the physics code ready, this should be really easy to do in GLVisualize.
I'm about to merge some important rebuild and writing up docs right now, which is why it's not released, but here is a teaser:

Best,
Simon

Eric Forgy

unread,
Nov 30, 2015, 8:28:38 AM11/30/15
to julia-users
I recently did some work getting Julia to interact with plotly.js. Here are some screenshots:


The same concept can be used to get Julia to interact with d3.js (and that was the motivation for the PlotlyJS stuff). PlotlyJS is still early stages though:

Randy Zwitch

unread,
Nov 30, 2015, 8:48:06 AM11/30/15
to julia-users
This is also on my roadmap for Vega.jl 

Tim Holy

unread,
Nov 30, 2015, 10:25:36 AM11/30/15
to julia...@googlegroups.com
You can manipulate elements of your plot with the hit-testing in Immerse:

https://github.com/JuliaGraphics/Immerse.jl
https://www.youtube.com/watch?v=2ic5vj9hD-w

--Tim

On Monday, November 30, 2015 05:48:06 AM Randy Zwitch wrote:
> This is also on my roadmap for Vega.jl
>
> On Monday, November 30, 2015 at 7:25:40 AM UTC-5, Weijian Zhang wrote:
> > Dear all,
> >
> > I really like the force-directed graph example in d3 <https://d3js.org/>.

Weijian Zhang

unread,
Nov 30, 2015, 1:59:03 PM11/30/15
to julia-users
Thanks a lot for all the suggestions.

Weijian

Martin Somers

unread,
Dec 2, 2015, 5:11:05 AM12/2/15
to julia-users
Hi Weijian 

you pretty much can do something like that at the moment with stock julia - at the back end of that chart is some javascript - if you refactor it to load a json file, you then can use julia to generate the json object - when you make changes to the julia file you can dynamically rebuild all files using grunt/gulp 

this was helpful for me a couple of months back when I was building a dynamic javascript chat using julia

hope it helps
M

 
Reply all
Reply to author
Forward
0 new messages