d3.interpolate (Number) | Dirty D3 - Episode 4 @funfunfunction
d3.interpolate (Number) | Dirty D3 - Episode 4  @funfunfunction
Uploaded May 2025 | Updated September 2026, 2 weeks ago
In this episode of Dirty D3, MPJ dives deeper into the world of interpolation by exploring d3.interpolate and d3.interpolateNumber - the function that powers much of D3's ability to smoothly transition between numerical values.

Source code & Full transcript: https://src.fff.dev/f3d3d4/s01/e04

Building on Episode 3's introduction to interpolation concepts, we explore:
• Creating and using number interpolators with practical examples
• The relationship between interpolators and D3 scales
• The mysterious "t-value" parameter (and why mathematicians are feral)
• How d3.interpolate connects to d3.scaleLinear
• A real-world application using train commute times between Stockholm, Uppsala, and Upplands Väsby
• The mind-blowing revelation about time dilation in... Swedish suburbs?

This episode bridges the gap between the abstract concept of interpolation and concrete D3 mechanics, showing how interpolation functions as the engine behind D3's powerful scaling capabilities.

📚 RESOURCES:
Source code & Full transcript: https://src.fff.dev/f3d3d4/s01/e04
D3.js Documentation: d3js.org/getting-started
D3 Interpolate Docs: d3js.org/d3-interpolate/value
D3 Scale Linear: d3js.org/d3-scale/linear

👉 Follow along with our journey into the heart of D3.js as we continue to unravel the library's core concepts one rabbithole at a time!

#D3js #DataVisualization #JavaScript #WebDevelopment #DataScience #datavisualization #dataviz #d3js #dataanalytics
d3.interpolate (Number) | Dirty D3 - Episode 4Advanced Dependency Injection without classes - Fun Fun FunctionCelebrating node.js turning 10 years oldFun Fun Function Live StreamGetting started with CircleCI - Continuous Integration P2 - Fun Fun FunctionWorst Hello World ever - Lets code - Fun Fun FunctionTelling Stories With TypescriptLuna Programming language Part 1Is your generalization actually procrastination?Standard Deviation - Data Science in JavaScript - Fun Fun FunctionHow to deal with bad bosses + other questions - Fun Fun FunctionWhere should unit tests run? -  Q&A P2 - Fun Fun Function
Fun Fun Function |

d3.interpolate (Number) | Dirty D3 - Episode 4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER