r/purescript • • Sep 22 '16

Drawing graph data; which library? Possible with PureScript?

Right now I'm trying to go down the rabbit hole, exploring PureScript. Still, I'm overwhelmed. My aim is to visualize a relatively big graph (around 5k nodes) augmented with some UI elements (an input field, etc). The graph needs to be somewhat interactive in the sense that I can react to clicks on nodes etc.

Considering this aim, a few questions:

a) Do you have experience in using PureScript for heavier graphical computations like this one? Is this possible in a smooth way?

b) If so, which library would/did you use? Or which bindings?

Thanks in advance.

3 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/kritzcreek Sep 23 '16

purescript-simple-dom unfortunately doesn't compile with recent compiler versions and seems to be abandoned. A few JS graph drawing libraries are listed here: http://anvaka.github.io/graph-drawing-libraries/#/all

purescript-d3 is probably your best bet though. It's incredible what you can create with d3

1

u/albtzrly Sep 23 '16

Thanks, that's good to know!