Hi,Does anyone know how I can view the JSON data for the example Les Miserables Adjacency Matrix / Co-Occurrence Diagram?
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
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
> 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
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