Open saaj opened 3 years ago
Here's a Hacker News discussion on dpapathanasiou/simple-graph (which goes all over the place and can be a good overview) which has similar approach to storing graphs in SQLite (document-oriented upfront, its schema.sql
). Another library's schema mentioned there.
@lana-k is graphing outside the scope of this project? I do not see plotly supporting this, but maybe I'm wrong.
@twoxfh there are no graphs in plotly indeed, but that doesn't mean that this issue is outside the scope of sqliteviz. Sqliteviz is supposed to support different kinds of visualisation in future including graphs.
@lana-k sounds good, I would like to chime in on graphviz which is my preference. Also may want to consider filtering at the table level which pushes updates to the various visualizationa
The workflow w.r.t. filtering should stay as is for any new visualisation components. 1) Drop database/CSV, 2) write SQL to produce desired result set, 3) explore the result set with the visualisation of choice. The latter should stay GUI way (as the users aren't expected to know more languages but SQL) so I don't see how dot language fits here.
Not sure how that will be accomplished with the other libraries.
As a user of Sqliteviz, In order to study structure and/or dynamics of complex networks (e.g. biological or infrastructure), I want to be able to visualise a graph (a set of vertices and edges).
Candidate JavaScript graph libraries:
For both the data model looks roughly like (sans styling, layout, etc):
This can be mapped to SQLite resultset structure like this.
json_object
required JSON1 extension, which should be included by default in recent official builds of sql.js, https://github.com/sql-js/sql.js/pull/440.