Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
前端網頁資料視覺化設計
Search
tkirby
December 22, 2015
Technology
1
440
前端網頁資料視覺化設計
前端網頁資料視覺化設計 / 分享於現代化網站技術分享日
tkirby
December 22, 2015
Tweet
Share
More Decks by tkirby
See All by tkirby
Theory of Graphical Perception
tkirby
0
480
Open Refine Course
tkirby
0
180
Language Reference
tkirby
0
100
新聞記者的程式設計第一課
tkirby
0
510
Visualization over Web
tkirby
0
110
迎戰壞資料 @ dbootcamp Taipei
tkirby
0
730
Rasterize D3.js
tkirby
7
1.6k
SVG + D3.JS Course Slide
tkirby
0
210
資料新聞學手冊導讀
tkirby
0
240
Other Decks in Technology
See All in Technology
あの日俺達が夢見たサーバレスアーキテクチャ/the-serverless-architecture-we-dreamed-of
tomoki10
0
460
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
260
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
110
kargoの魅力について伝える
magisystem0408
0
210
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
なぜCodeceptJSを選んだか
goataka
0
160
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
120
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.3k
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
850
UI State設計とテスト方針
rmakiyama
2
620
PHPerのための計算量入門/Complexity101 for PHPer
hanhan1978
5
190
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Bash Introduction
62gerente
608
210k
A Tale of Four Properties
chriscoyier
157
23k
Building Adaptive Systems
keathley
38
2.3k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
GraphQLとの向き合い方2022年版
quramy
44
13k
Raft: Consensus for Rubyists
vanstee
137
6.7k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Transcript
網⾴頁前端視覺化技術 infographics.tw
None
None
None
Nigel Holmes TIME Magazine
$IBSU+VOL%FCBUF &EXBSE5VGUF JO7%2* 「凡對讀者的智⼒力抱著懷疑態度來對待的⼈人, 也無法寫出像樣的作品。」 「如果統計數字枯燥乏味的話, 那你肯定弄錯了數字」 IJUF
$IBSU+VOL%FCBUF &EXBSE5VGUF JO7%2* %BUB*OL3BUJP *OLPG%BUB 5PUBM*OL6TFE
None
None
None
None
1854 1858 1869
http://www.nytimes.com/interactive/2015/03/19/upshot/3d-yield-curve-economic-growth.html?_r=0
data = [1,2,3,4,5,6,7,8]
data = [1,2,3,4,5,6,7,8] <div style=“width:100px”></div> <div style=“width:200px”></div> <div style=“width:300px”></div> <div
style=“width:800px”></div> …..
2011 Mike Bostock
TA G DATA +
data = [1,2,3,4,5,6,7,8]
data = [1,2,3,4,5,6,7,8] d3.select(“#root”) .selectAll(“div”) .data(data)
data = [1,2,3,4,5,6,7,8] enter() exit() d3.select(“#root”) .selectAll(“div”) .data(data)
data = [1,2,3,4,5,6,7,8] enter() exit() d3.select(“#root”) .selectAll(“div”) .data(data) append remove
data = [1,2,3,4,5,6,7,8] d3.select(“div:nth-of-type(5)”) .text(function(v) { return v; });
d3.select(“#root”) .selectAll(“div”) .style({ “width”: function(v) { return v + “px”;
}}) .attr({ … }); Dynamic Property
None
None
MathML
MathML X3D
MathML X3D SMIL
MathML X3D SMIL Document Agnostic
http://zbryikt.github.io/visualize/banana/ Banana in X3D
Transition d3.select(“#root”) .selectAll(“div”) .transition() .duration(1000) .style({ “width”: function(v) { return
v + “px”; }});
http://bl.ocks.org/mbostock/1256572 D3 Show Reel
None
http://bl.ocks.org/infographicstw/raw/122779b04901c4ffa455/5.html Play with Force Layout
None
None
Processing 2001, MIT Media Lab. Simplified Java
Processing 2001, MIT Media Lab. Simplified Java Processing.js p5.js
d3.select(“#root”) .selectAll(“div”) .data(d) .enter() .append(“div”) .style({ width: function(v) { return
v+”px”; }, height: “10px” } ); <div id=“root”></div> function draw() { for(i in d) { rect(0,i*10, d[i],(i+1)*10); } } d3.js p5.js
d3.select(“#root”) .selectAll(“div”) .data(d) .enter() .append(“div”) .style({ width: function(v) { return
v+”px”; }, height: “10px” } ); <div id=“root”></div> function draw() { for(i in d) { rect(0,i*10, d[i],(i+1)*10); } } d3.js p5.js CSS Selector HTML CSS D3.js
d3.select(“#root”) .selectAll(“div”) .data(d) .enter() .append(“div”) .style({ width: function(v) { return
v+”px”; }, height: “10px” } ); <div id=“root”></div> function draw() { for(i in d) { rect(0,i*10, d[i],(i+1)*10); } } d3.js p5.js draw in draw rect by rect
But….. Performance?
p5.js
2D webGL renderer with canvas fallback
D3.js Pixi.js
快 易 強 難 慢 弱 ? d3.js p5.js pixi.js
PathGL
PathGL
PathGL
Rasterize D3.js D3.js HTML SVG X3D CUSTOM CANVAS SVG 3D
CANVAS WEBGL CA NV AS CANVAS DATA BINDING INTERFACE IMPLEMENTATION CSS 3D CA NV AS PHANTOMJS or NATIVE PORTING SERVER SIDE
D3 + Canvas ? D3 + NodeJS ? D3 +
ReactJS ? D3 + WebWorker ?
TO BE CONTINUE …
Let’s Talk about Responsive
None
Large in Size Low Quality
Small in Size High Quality
w (x1,y1) <svg width=“w” height=“h” viewBox=“x1 y1 x2 y1”> h
(x2,y2)
(x1,y1) (x2,y2) w h
preserveAspectRatio xMin xMid xMax yMin yMid yMax
preserveAspectRatio=“xMidYMid” xMin xMid xMax yMin yMid yMax
None
None
None
http://www.nytimes.com/interactive/2015/06/17/world/middleeast/map-isis-attacks-around-the-world.html?smid=tw-nytimes&_r=1
None
None
None
(x1,y1) (x2,y2) w h x scale y scale
d3.scale.linear() data 0~10 scale coord 0~w
d3.svg.axis().tick(w/k)
07/2015, Nadieh @ Visual Cinnamon
None
None
None
None
None
None
http://www.foundi.info/lab/badneighbor/
總結 • 整體原則與 RWD 相同 • 考慮圖⽂文搭配的閱讀體驗 • 彈性處理圖表本⾝身的尺⼨寸 •
可以簡化的資料應統⼀一簡化,沒有平台差異 • 不適合簡化的資料,再考慮分裝置處理 • 永遠考慮更簡潔的表現形式
Visualization without Web
2015.09 shown by Republican to the congress to refund Planned
Parenthood
proposed actually 2015.09 shown by Republican to the congress to
refund Planned Parenthood
http://guns.periscopic.com/
( 2007 Proc. InfoViz )
None
None
None
None
w w <canvas width=“w” height=“h” style=“width:wpx;height:hpx”> h h