# Wot graphed with Arbor.js

**URL:** <https://forum.duniter.org/t/wot-graphed-with-arbor-js/266>\
**Category:** Nodes\
**Created:** [26 May 2015 21:24 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266 "2015-05-26T21:24:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greyzlii](https://forum.duniter.org/letter_avatar/greyzlii/32/6_449c533f586939b6e5f246632a46421f.png) [@greyzlii](https://forum.duniter.org/u/greyzlii)\
**Post date:** [26 May 2015 21:24 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/1 "2015-05-26T21:24:49Z")

</div>

Hi,  
I made a quick and dirty script to create a graph with arbor.js.  
I’m not a programmer, I did it in less than 2 hours. This library is (too?) easy to use.  
If interested, I can share my code. But, it’s probably not the best code you’ve ever seen :smile:

 ![](https://forum.duniter.org/uploads/default/215/718845e9debeb67c.png)

---

<div class="post-metadata">

**Author:** ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)\
**Post date:** [26 May 2015 21:52 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/2 "2015-05-26T21:52:42Z")

</div>

Great! Please share it, I will try to add it at [http://www.metab.ucoin.io/#/community/members](http://www.metab.ucoin.io/#/community/members) with dynamic data 🙂

---

<div class="post-metadata">

**Author:** ![greyzlii](https://forum.duniter.org/letter_avatar/greyzlii/32/6_449c533f586939b6e5f246632a46421f.png) [@greyzlii](https://forum.duniter.org/u/greyzlii)\
**Post date:** [27 May 2015 19:14 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/3 "2015-05-27T19:14:38Z")

</div>

Ok, i’m not a programmer and I really don’t know how to share code.  
I never used CVS, SVN, git. (except the beloved “git clone” command).  
Moreover, arbor.js is not maintened anymore. I have a look on sigma.js or d3.js. (Data Visualization is an exciting domain).

Anyway, I currently use the Http API to build the graph :

- [http://metab.ucoin.io/wot/members](http://metab.ucoin.io/wot/members) to have all members (nodes)
- [http://metab.ucoin.io/wot/certifiers-of/](http://metab.ucoin.io/wot/certifiers-of/)\< lookup \> for each member to have all certifications (edges)

I have two remarks/questions :

- I use jquery and the function `getJSON`. I cannot use it directly (`getJSON(url);`) because my browser complains about cross domain scripting. I googled this problem and it seems that this must be adressed on server side by implementing a json callback (jsonp : json with padding). Is this feature on the roadmap ?

- I seen several libraries (sigma.js, d3.js) wich describe a graph G in this format { nodes : [{“id”:“1”,“xxx”=“a”}, {“id”:“2”,“xxx”="b}], edges : [{“id”:“1”,“source”=“a”}, {“id”:“2”,“source”="b}] }  
Is there a way to obtain the graph structure more easily than my method (HTTP API calls /wot/members and /wot/certifiers-of/someone).

Thanks for your time.

PS : Maybe this thread should be moved on Dev section.

---

<div class="post-metadata">

**Author:** ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)\
**Post date:** [27 May 2015 20:30 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/4 "2015-05-27T20:30:58Z")

</div>

If your code is in a single file, you can also paste it into [http://hastebin.com/](http://hastebin.com/) and give us the link.

Anyway, it is great to see you’ve dug into the API and used it successfully like @vit did for cutecoin :smile:

---

<div class="post-metadata">

**Author:** ![greyzlii](https://forum.duniter.org/letter_avatar/greyzlii/32/6_449c533f586939b6e5f246632a46421f.png) [@greyzlii](https://forum.duniter.org/u/greyzlii)\
**Post date:** [27 May 2015 20:52 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/5 "2015-05-27T20:52:26Z")

</div>

Here is :  
[http://hastebin.com/gozeximelo.xml](http://hastebin.com/gozeximelo.xml)

And regarding my questions ? Any answer ? 😇

---

<div class="post-metadata">

**Author:** ![greyzlii](https://forum.duniter.org/letter_avatar/greyzlii/32/6_449c533f586939b6e5f246632a46421f.png) [@greyzlii](https://forum.duniter.org/u/greyzlii)\
**Post date:** [29 May 2015 07:03 UTC](https://forum.duniter.org/t/wot-graphed-with-arbor-js/266/6 "2015-05-29T07:03:15Z")

</div>

I will have a look on ElasticSearch [http://data.ucoin.fr/](http://data.ucoin.fr/)
