A FastBootable Approach to D3 based Graphing
summary
Shows how to render D3 charts on the server with Ember FastBoot by computing scales and generators as Ember computed properties and emitting SVG path strings and axis string recreation into templates, then attaching D3 on the client for interactions. Implements line, pie and axis generators from d3 modules, works without JavaScript (server-rendered SVG appears immediately) but loses DOM hydration (FastBoot currently throws away server DOM) and must handle viewport-sizing and some manual reimplementation of D3 axis logic.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker
- 1:14What is D3.js
- 3:00D3 and Ember combination
- 5:06Building flexible chart components
- 11:10What is FastBoot
- 13:16Making charts FastBoot-compatible
- 18:51Server-rendered line chart demo
- 19:14Server-rendered pie chart
- 21:48Updating charts after render
- 23:56Why server-side rendering matters
- 26:45Challenges of FastBoot rendering
- 29:31Summary and Q&A
