Comments (6)
Heyo, here's my stab at doing this:
https://gist.github.com/DGaffney/1c2f1c3c6a9501320e94
and some sample data to get you going on transforming your mysql data into the proper format for JSON parsing - this obviously doesn't rescue against lots of different issues (color, position not specified) but its mostly done.
from sigma.js.
someone wrote one. Cant remember where it was from. But i'm using it to populate my graph from rss feeds. Example at www.fraseraddison.com
File can be found on my repo under js folder. https://github.com/faddison/Eportfolio
from sigma.js.
Know this is an old issue, but since it's open and being referenced / seen. The sigma.parseJson.js file in the plugins folder will load a json file. There is also a gexf2Json.py file in the same folder to convert a gexf file to the required json format. I'm not sure how this compares with mysql converted to json but it looks similar to DGaffney's example data.
from sigma.js.
@computermacgyver it really depends on whatever spec is put on the incoming data - mine was relatively arbitrary and was just mostly a close-ish analog to a GEXF file. For reference, the inspiration for that particular output spec is https://gist.github.com/DGaffney/25d879da9982d8273113 - for a working example of getting ruby data piped through to an output gexf file using that class, you basically just call on the individual functions with your raw data which is basically the same format as that JS file. If you want, I can write up a demo some time in the next few days...
from sigma.js.
@DGaffney No need for a working example from my end. I also had tried to do something close to the gexf / how sigma internally represented the graph already. I think we arrived at very similar (perhaps the same) result. I think this probably doesn't need any more attention given its age. I wanted to tack on the information about the plugin simply for future readers' reference. Cheers!
from sigma.js.
The new version of sigma provides a better GEXF parser and a simple method to read a graph from an object (which makes using JSON dead simple).
from sigma.js.
Related Issues (20)
- Remaining V3.0.0 release tasks
- Build fails with "Missing './rendering/node-labels' specifier" after updating to 3.0.0-beta.8 HOT 3
- about loop edge, curved edge, quadratic edge HOT 2
- v3.0.0-beta.10: Package.json module (esm) export "./rendering" incomplete HOT 3
- Node scaling issue on MacOS with NodeBorderProgram and NodePointProgram HOT 8
- NodeCircleProgram is buggy on Chrome mobile
- @sigma/edge-curve is buggy on Chrome mobile
- How do I do custom shapes? HOT 1
- Create a snapshot of "sigma-containter" HOT 1
- Questions about the use of the sigma HOT 1
- The error of edge reduce HOT 3
- Optimizing Zoom Functionality for Scalable Graphics HOT 3
- CDN release for latest version HOT 3
- Sigma with VueJs HOT 2
- Utility functions not available when loading sigma statically via cdn HOT 1
- Add Kenelyze to the In The Wild section
- Changing programs with `setSetting` has no effect HOT 1
- Height and width for images in nodes HOT 2
- Angular: update from 2.4 to sigma 3.0 beta, cannot find type declarations error during compile HOT 2
- Opacity for edges
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sigma.js.