Zoomable Treemap 學習
遇到的問題:程式碼中的 treemap 根本沒用到啊?所以這是自己硬刻出來的吧?
Instantly share code, notes, and snippets.
Zoomable Treemap 學習
遇到的問題:程式碼中的 treemap 根本沒用到啊?所以這是自己硬刻出來的吧?
學習 treemap
遇到的問題:我改不動 mouseover 使區塊變色,mouseover 後 d3.select(this).style("background", anotherColor) 沒作用?
了解 force layout node 及 link 操作
將原本寫死的三個動作,變成可以自由新增 node 與 link
學習 force layout 及 transition
遇到的問題:不知道是不是 bug,當 node fixed 的時候且每個 node 的 x,y 都靜止不變後,double click node 並不會讓 node 彈回去
改成像是線上人數的圖表,不同顏色表示不同裝置
遇到的問題:客製化 transition 還是沒完全掌握,不知道如何把很多種 transition 組合在一起
將資料依年份分開呈現,中間使用 transition 並且更新 x, y 軸