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
Baseline対応のDOMの型定義を作った
uhyo
3
720
“全部コピーしない”ファイルデータの活用 : — FSx for ONTAP × S3 Tables × Icebergで作るメタデータカタログ
yoshiki0705
0
600
CIで使うClaude
iwatatomoya
0
190
AIと共生する開発者プラットフォーム:バクラクのモノレポ×マイクロサービス基盤
sakajunquality
2
2.9k
なぜ人は自分のプロジェクトを 「なんちゃってアジャイル」と 自嘲するのか
kozotaira
0
270
はじめてのWDM
miyukichi_ospf
1
130
AIで政治は変わるのか? — 中高生と考えたAI時代の民主主義(東海高校サタデープログラム)
eitarosuda
0
410
最近評価が難しくなった
maroon8021
0
260
Claude Code 珍プレー好プレー
shinyasaita
0
300
Empower GenAI with Agile - あなたのアジャイルが生成AIのバフになる仕組み
hageyahhoo
1
150
最適な自走を最小限の支援で — M&Aで拡大する組織で少人数SREが挑んだ1年 / SRE NEXT 2026
genda
0
670
事業価値を⽣み出すSREへ SREが担うべき意思決定の5層
kenta_hi
2
2.8k
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
3.9M
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
490
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
550
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
410
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
210
Making Projects Easy
brettharned
120
6.7k
The Curse of the Amulet
leimatthew05
2
13k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
610
Unsuck your backbone
ammeep
672
58k
Chasing Engaging Ingredients in Design
codingconduct
0
230
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
800
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༵