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
visxに触ってみた話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kab0718
January 10, 2025
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
visxに触ってみた話
kab0718
January 10, 2025
More Decks by kab0718
See All by kab0718
アルゴリズムと計算量
kab0718
0
63
お嬢様言葉
kab0718
0
170
アイドルとコミュニケーション
kab0718
0
40
ブラウザレンダリングについて(簡易版)
kab0718
0
75
コーディングで意識してること
kab0718
0
60
趣味とぷよぐらみんぐ
kab0718
0
230
SDLアプリコンテスト2019プレゼン資料
kab0718
0
65
近況報告
kab0718
0
1.4k
アイドル×アイドル
kab0718
0
160
Featured
See All Featured
Tell your own story through comics
letsgokoyo
1
1.1k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
520
Building Applications with DynamoDB
mza
96
7.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
260
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
240
Producing Creativity
orderedlist
PRO
348
41k
4 Signs Your Business is Dying
shpigford
187
23k
Done Done
chrislema
186
16k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Transcript
visxに触ってみたお話
自己紹介 • カブ(@kab__nan) • 昨年4月に転職しました • フロント(しかできない) エンジニア • 最近気になるのは映画館の貸し切り
• 「花は咲く、修羅の如く」を見てください
visxとは • Airbnbが作ったビジュアライゼーションライブラリ • D3.jsをReactで使いやすくラップしたもの • 最終的にはsvgで出力してくれる
• 自由度は高いけどコードの記述量も増える
使った理由 右のようなレーダーチャートを作りたかった 既にvisxで散布図を表示している箇所があった じゃあvisxで試してみるか
visxのサンプル一覧を見てみると...
None
None
サンプルコード • @visx/scaleと@visx/shapeを使うと作れるらしい • @visx/scale const scale = Scale.scaleLinear({
domain: [0, 1000], // 実データの値のレンジ range: [0, 250], // グラフ上の値のレンジ }); scale(200) // 50が返ってくる • @visx/shape ◦ 指定した座標間に線を引ける
触ってみた感想 • 座標計算とかを自分でやるのは面倒だった • 今回のようにシンプルなものを表現するなら 他のライブラリ使った方がいい • サンプル見てるとかなり色々なことができそう
• 日本語の記事が少ない ◦ visxで検索して3件しか出てこない。 内1件は幣チームのフロントエンドのリーダーの記事