JSON Data for Les Miserables Adjacency Matrix?

1,195 views
Skip to first unread message

Guerino1

unread,
Apr 19, 2012, 9:46:02 AM4/19/12
to d3...@googlegroups.com
Hi,

Does anyone know how I can view the JSON data for the example Les Miserables Adjacency Matrix / Co-Occurrence Diagram?  I'd like to understand how nodes and edges were structured and represented so I can try to append data like a severity value to the edges.

Thanks,

Frank

Puneet Kishor

unread,
Apr 19, 2012, 9:47:54 AM4/19/12
to d3...@googlegroups.com, d3...@googlegroups.com
On Apr 19, 2012, at 8:46 AM, Guerino1 <fgue...@gmail.com> wrote:

Hi,

Does anyone know how I can view the JSON data for the example Les Miserables Adjacency Matrix / Co-Occurrence Diagram


Follow the source Luke.

Mr. Puneet Kishor

unread,
Apr 19, 2012, 10:22:43 AM4/19/12
to d3...@googlegroups.com


http://bost.ocks.org/mike/miserables/miserables.json to be precise


One of the nice things about web programming is there are no mysteries, real or apparent. Everything required to (re)create whatever is on the screen is already on the screen. There is simply no way around it.

--
Puneet Kishor

Nate Vack

unread,
Apr 19, 2012, 10:49:00 AM4/19/12
to d3...@googlegroups.com
On Thu, Apr 19, 2012 at 9:22 AM, Mr. Puneet Kishor <punk...@gmail.com> wrote:
> http://bost.ocks.org/mike/miserables/miserables.json to be precise
>
>
> One of the nice things about web programming is there are no mysteries, real or apparent. Everything required to (re)create whatever is on the screen is already on the screen. There is simply no way around it.

In general, looking for calls to json() or csv() in the example source
code will get you the data you're looking for in d3 examples.
Occasionally, data might be included in <script> tags...?

And really: this is true of programming in general -- a web program
with obfuscated source that reads its data out of some crazy binary
format will be just as opaque as a native binary.

The web just makes it so much easier to do the job in a
socially-responsible way ;-)

-n

Mr. Puneet Kishor

unread,
Apr 19, 2012, 10:57:54 AM4/19/12
to d3...@googlegroups.com

On Apr 19, 2012, at 9:49 AM, Nate Vack wrote:

> a web program
> with obfuscated source that reads its data out of some crazy binary
> format


obfuscation aside, how do you intend to get that "crazy binary format" to the browser without having it prompt you to download it or otherwise puke? Unless you are extracting values out of gif, jpg, png or mp3, I can't think of many other binary formats that a browser can manage without a plugin. The nice thing about the web is that unless you resort to shenanigans, a browser can pretty much only deal with text, which is why JSON is so cool as it is both text and code at the same time.


--
Puneet Kishor

Mr. Puneet Kishor

unread,
Apr 19, 2012, 11:10:08 AM4/19/12
to d3...@googlegroups.com


Whereby, I meant to say that JSON is both pure data and pure code at the same time, and is all in plain text to boot. What is not to like?

--
Puneet Kishor

Frank Guerino

unread,
Apr 19, 2012, 5:01:25 PM4/19/12
to d3...@googlegroups.com
Thank you, gentlemen.  I got it.

My Best




Reply all
Reply to author
Forward
0 new messages