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
Introducción a la visualización de datos en la ...
Search
Juan Sebastián Vega
April 06, 2018
Programming
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introducción a la visualización de datos en la web con D3
Juan Sebastián Vega
April 06, 2018
More Decks by Juan Sebastián Vega
See All by Juan Sebastián Vega
Transferencia de estilo
sebasvega95
0
90
Introducción a las redes neuronales
sebasvega95
0
85
Introducción a la visualización de datos en Python
sebasvega95
1
160
Other Decks in Programming
See All in Programming
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
150
SlackアプリとLambdaの 連携を構築した話
pawn_4_s
1
120
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
19k
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
100
Foundation Models frameworkで画像分析
ryodeveloper
1
620
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
180
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
470
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
300
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.8k
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
190
Building a Meta Ray-Ban display app
akkeylab
0
160
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
150
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
210
Done Done
chrislema
186
16k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
280
Un-Boring Meetings
codingconduct
0
390
Design in an AI World
tapps
1
280
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
650
How to train your dragon (web standard)
notwaldorf
97
6.8k
The SEO identity crisis: Don't let AI make you average
varn
0
530
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
390
Transcript
Visualización de datos en la web D3.js Juan Sebastián Vega
Patiño
• Prefacio • Selecciones • Data joins • Transiciones •
Escalas • Módulos • Demos
Prefacio
Web standards Transformaciones, no representaciones
Web standards Transformaciones, no representaciones
Introducción a D3 DOM Datos Las visualizaciones requieren mapeo de
datos a elementos
Introducción a D3 DOM Datos Las visualizaciones requieren mapeo de
datos a elementos
Introducción a D3 DOM Datos Las visualizaciones requieren mapeo de
datos a elementos
Características de D3
Características de D3 • No es monolítica
Características de D3 • No es monolítica • Manipulación eficiente
del DOM
Características de D3 • No es monolítica • Manipulación eficiente
del DOM • Data driven
Características de D3 • No es monolítica • Manipulación eficiente
del DOM • Data driven • No usa representaciones propias ⚖
Selecciones
Selectores CSS
Selectores CSS someTag <someTag> Selector Elemento
Selectores CSS someTag <someTag> .someClass <any class=“someClass”> Selector Elemento
Selectores CSS #someId <any id=“someId”> someTag <someTag> .someClass <any class=“someClass”>
Selector Elemento
Selectores CSS #someId <any id=“someId”> someTag <someTag> .someClass <any class=“someClass”>
[attr=someAttr] <any attr=“someAttr”> Selector Elemento
W3C DOM API • Tedioso • Enfoque imperativo ☹ •
Estados temporales
W3C DOM API
Selecciones en D3 • Enfoque declarativo • Operan con la
API de W3C (e.g. ‘#id’, ‘.class’) • Mutación, registro de eventos, ordenamiento
Selecciones D3
Data joins
2 4 8 16 32 font-size
2 4 8 16 32 Update font-size
None
None
Enter { } { } { } { } {
}
Enter { } { } { } { } {
} Update
Enter { } { } { } { } {
} Update Enter
Data joins Enter
Exit { } { } { }
Exit { } { } { } Update
Exit { } { } { } Update Exit
Exit
Transiciones
Exit
Escalas
Datos DOM
Números Fechas Categorías Coordenadas Colores Radios Tamaños Datos DOM
Números Fechas Categorías Coordenadas Colores Radios Tamaños Datos DOM Dominio
Números Fechas Categorías Coordenadas Colores Radios Tamaños Datos DOM Dominio
Rango
Números Fechas Categorías Coordenadas Colores Radios Tamaños Datos DOM Dominio
Rango d3.scaleLinear d3.scaleSqrt d3.scaleTime
None
Módulos
d3-time d3-axis d3-collection d3-color d3-dsv d3-fetch d3-force d3-geo d3-hierarchy
Demos
d3js.org bl.ocks.org observablehq.com @DataToViz @sxywu @mbostock @NadiehBremer @sebasvega95
Gracias!! d3js.org bl.ocks.org observablehq.com @DataToViz @sxywu @mbostock @NadiehBremer @sebasvega95