以 d3.js 讀取 CSV 檔案的範例


以 d3.js 讀取 CSV 檔案的範例:

1. 把 d3.js (4.5.0), coffee.csv, csv_loading.html 放到同一個 folder 內

2. 以 Chrome 開啟 csv_loading.html

3. 在 Chrome 按滑鼠右鍵, 選擇 "檢查(N)"
4. 在 Console tab 觀察 dataset 的 contents.

參考資料


[Book] Interactive Data Visualization for the Web: An Introduction to Designing with D3 - author: Scott Murray

Code examples for “Interactive Data Visualization for the Web”