SVG Charts and Graphics with Ruby
summary
Shows that Ruby can generate SVG instead of pulling in a heavy JS library, actually building bar line and donut charts as XML using rect path circle and text, comparing a minified d3 bundle (~100 kB) to much smaller hand‑generated SVG, demonstrating inline vs external SVG for CSS/JS interactivity, caching strategies, and practical code routes (string concat, builders, Haml). Explains the math for arcs with polar to Cartesian conversion, viewBox units, and browser caveats like older IE and mobile performance.
AI-written summary · about
chapters (5)
- 0:00Start
- 8:43Let's Take a Tour
- 10:53SVG elements work like HTML elements
- 14:00Bar Charts
- 17:01Line Charts
related talks
27mSVG charts and graphics with Ruby
18mData Visualisation with Ruby
29m"Hand Coded Artisanal Data-Visualization"
24mBeyond the bar graph: Creative visualization with D3.js
47mSVGs beyond mere shapes
51mD3 js: Easy and flexible data visualisation using Web standards
05mUsing SVG Circles For Charting
29mSVGs beyond mere shapes
