This was created during my time as a student at Code Chrysalis. Three examples of using D3 with facebook data.
This project is intended to be used for a walk through while adding the solution. The completed solution can be found here
- adTopics.html : simple example showing how to add divs with an array
- postDates.html : barchart example showing how to use scale
- ipAddresses.html : pie chart layout
After forking and cloning the repository you can open each html file up directly in a browser and see the examples working.
Because d3 uses the Fetch API which uses CORS serving local files is blocked - for good reason, but it can be annoying.
The workaround for these examples is to use Github Gist. The data for all of these examples is pubic, but not published The files being used in this example are:
Another possible solution is to start a web server in the same directory using python :
python -m SimpleHTTPServer 8080
and then local files can be accessed by going to localhost:8080