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
d3.js
Search
tgolen
March 20, 2012
Education
0
190
d3.js
An introduction to d3.js
tgolen
March 20, 2012
Tweet
Share
Other Decks in Education
See All in Education
今の私を形作る4つの要素と偶然の出会い(セレンディピティ)
mamohacy
2
110
Entrepreneurship minor course at HSE 2025
karlov
0
110
Design Guidelines and Models - Lecture 5 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.1k
2024-2025 CBT top items
cbtlibrary
0
130
今までのやり方でやってみよう!?~今までのやり方でやってみよう!?~
kanamitsu
0
200
American Airlines® USA Contact Numbers: The Ultimate 2025 Guide
lievliev
0
260
AI for Learning
fonylew
0
200
データで見る赤ちゃんの成長
syuchimu
0
330
IKIGAI World Fes:program
tsutsumi
1
2.4k
CSS3 and Responsive Web Design - Lecture 5 - Web Technologies (1019888BNR)
signer
PRO
1
2.9k
Editor First: Customizing TYPO3 for a Cleaner Workflow
ulli
0
110
Adobe Express
matleenalaakso
1
8k
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
40k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
GraphQLとの向き合い方2022年版
quramy
49
14k
Bash Introduction
62gerente
615
210k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Scaling GitHub
holman
463
140k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
How GitHub (no longer) Works
holman
315
140k
Being A Developer After 40
akosma
91
590k
[RailsConf 2023] Rails as a piece of cake
palkan
57
6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
Transcript
d3.js an introduction
What is it? A JavaScript library for manipulating documents based
on data.
What can it do? • Graphs • Charts • Tables
• Transformations • Interactions • SVG • HTML • Anything
Examples • http://mbostock.github.com/d3/ex/calendar. html • http://mbostock.github.com/d3/ex/chord.html • http://www.visualizing. org/visualizations/urban-water-explorer/
Simple Code Example https://github.com/Nodeable/web-client/blob/master/static/js/4_x/nodeable/views/desktop/widgets/hashtags.js tagCloud.selectAll( '.tag') .data(self.data) .enter().append( 'a') .attr('class',
function(d){ return 'tag height_' + Math.round (tagHeight(d.percent)); }) .attr('title', function(d){ return d.value; }) .style('font-size', function(d){ return Math.round(tagHeight(d. percent)) + 'px'; }) .text(function(d){ return d._id; });
Why should you use it? • You want to visualize
data in unique ways. • You thirst for adventure and challenge. • You don't want to use canned graphs.
Why shouldn't you use it? • It has an extremely
steep learning curve. • You can settle for more simple solutions (highcharts).
Resources d3.js - http://mbostock.github.com/d3/
Questions? Tim Golen Web Developer - Nodeable.com @tgolen http://www.golen.net