Convert Input Data to Output Values with Linear Scales in D3 v4

Share this video with your friends

Send Tweet

Mapping abstract values to visual representations is what data visualization is all about, and that’s exactly what D3 scales do. Turning a test score into a column height, or a percentage into an opacity requires translating from one set of possible values to another, and linear scales perform a direct, proportional conversion of inputs to outputs. In this lesson we’ll learn the basic API of D3 scales and how to use them.
~ 2 years ago

not really clear what the .invert method does here
~ 2 years ago

ho ok go it !