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
Rickshaw
Search
badatmath
March 02, 2014
Technology
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rickshaw
Rickshawの紹介
badatmath
March 02, 2014
More Decks by badatmath
See All by badatmath
JavaScript小史
badatmath
13
4.9k
Node.js入門
badatmath
20
10k
Other Decks in Technology
See All in Technology
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
20k
DGX Sparkを2台使って いろいろ動かす話
sonoda_mj
1
110
Claude Codeで開発以外の業務も爆速化しよう!
minorun365
PRO
12
9.5k
プロダクトエンジニアに必要な「いい感じ」に作る能力 〜たくさん作れる時代に、どこまで作るかの決め方〜
jnishime_dresscode
2
910
[RSJ26] Flow as Flow: Modeling Robot Velocity Fields as Probability Velocity Fields
keio_smilab
PRO
0
180
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
150
IDperturb: Enhancing Variation in Synthetic Face Generation via Angular Perturbation
sansantech
PRO
0
110
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
20k
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
25k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
77k
生成AI時代の クレデンシャルとパーミッション設計
nrinetcom
PRO
3
1.3k
書籍『生成AIの安全性入門』の入門
wataoka
0
160
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
37
7.4k
Building Applications with DynamoDB
mza
96
7.2k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
260
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Docker and Python
trallard
47
4.2k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
410
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
260
Typedesign – Prime Four
hannesfritz
42
3.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
840
A designer walks into a library…
pauljervisheath
211
24k
Transcript
3JDLTIBXͰ࡞Δ ϦΞϧλΠϜՄࢹԽΞϓϦ @bad_at_math 143݄2༵
Rickshawͱ 143݄2༵
Rickshawͱ w࣌ܥྻσʔλʹϑΥʔΧεͨ͠ɺEKT Λར༻ͨ͠+BWB4DSJQUͷπʔϧΩοτ 143݄2༵
143݄2༵
143݄2༵
؆୯ var g = new Rickshaw.Graph(); graph.render(); 143݄2༵
؆୯ var g = new Rickshaw.Graph(); graph.render(); Koredake desu K
oredake desu 143݄2༵
؆୯ EKTͱͳΜͩͬͨͷ͔ 143݄2༵
ॳظԽ • element : Ͳ͜ग़ྗ͢Δ͔ • width : ෯ •
height : ߴ͞ • series : σʔλྻ 143݄2༵
ॳظԽmore • series : ෳͷάϥϑσʔλͷྻ • { color : “blue”,
data: [σʔλྻ] } 143݄2༵
ॳظԽmore <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="bower_components/rickshaw/src/css/graph.css"> <script
src="./bower_components/d3/d3.min.js"></script> <script src="./bower_components/rickshaw/rickshaw.min.js"></script> <title></title> </head> <body> <div id="chart"></div> <script> var graph = new Rickshaw.Graph( { element: document.querySelector("#chart"), width: 300, height: 200, series: [{ color: 'steelblue', data: [ { x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 38 }, { x: 3, y: 30 }, { x: 4, y: 32 } ] }] }); graph.render(); </script> </body> </html> 143݄2༵
ॳظԽmore <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="bower_components/rickshaw/src/css/graph.css"> <script
src="./bower_components/d3/d3.min.js"></script> <script src="./bower_components/rickshaw/rickshaw.min.js"></script> <title></title> </head> <body> <div id="chart"></div> <script> var graph = new Rickshaw.Graph( { element: document.querySelector("#chart"), width: 300, height: 200, series: [{ color: 'steelblue', data: [ { x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 38 }, { x: 3, y: 30 }, { x: 4, y: 32 } ] }] }); graph.render(); </script> </body> </html> divͰλʔήοτࢦఆ άϥϑඳը Rickshaw.GraphͷΠϯελϯεԽ 143݄2༵
ॳظԽmore colorͰ৭ࢦఆ σʔλྻ series: [{ color: 'steelblue', data: [ {
x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 38 }, { x: 3, y: 30 }, { x: 4, y: 32 } ] }] 143݄2༵
DEMO 143݄2༵
͜Ε͚ͩ <!doctype html> <html> <head> <link type="text/css" rel="stylesheet" href="bower_components/rickshaw/src/css/graph.css"> <link
type="text/css" rel="stylesheet" href="bower_components/rickshaw/examples/css/lines.css"> <script src="bower_components/d3/d3.min.js"></script> <script src="bower_components/socket.io-client/dist/socket.io.min.js"></script> <script src="bower_components/rickshaw/rickshaw.min.js"></script> </head> <body> <div id="chart_container"> <div id="chart"></div> </div> <script> var socketioGraph = new Rickshaw.Graph.Socketio( { element: document.getElementById("chart"), width: 900, height: 500, renderer: 'line', dataURL: "http://localhost:8000", onData: function(d) { Rickshaw.Series.zeroFill(d); return d } } ); </script> </body> </html> divͰλʔήοτࢦఆ Πϯελϯε࡞ 143݄2༵
DEMOิ WebSocket Data Emitter Browser (Rickshaw) Data Metrics 143݄2༵
·ͱΊ Rickshaw͏ͱ ࣌ܥྻσʔλΛ ؆୯ՄࢹԽ㽈 143݄2༵