I find a interesting website:http://www.brightpointinc.com/interactive/political_influence/
I want to learn its visualization using d3.
But when I download it, using
right click button
-------- save as
The download page seems does not work. It seems lack some data, so I get back to the website to download some data, but it lacks some of them, can anyone send me an work version? thanks
where can I download this code
270 Views Asked by yongnan At
1
As Lars says, your best bet is to look at the source code. To do this, you can use something like Chrome Developer Tools or Firebug for Firefox. I use the latter, so I'll take that as an example.
First, I'd right-click on the visualization itself, and click on
Inspect Element with Firebug
. This will pull up the HTML, which is only semi-helpful, since it only shows the output rather than the JavaScript code which created it.To get at the JavaScript, you can use Firebug's
Script
tab. Most websites have more than one script, so you can hunt through the scripts being used by browsing through the dropdown menu in the second toolbar. The_buildChords.js
script looks the most promising; that has some recognizabled3
code in it. You could check out the others to see what else they're calling (since it looks like there might be others -data.js
,events.js
, and so on).Happy learning.