All examples By author By category About

clhenrick

scale sqrt vs scale linear

Square Root vs. Linear Scale

On the left are circles sized using d3.scaleSqrt and the right are circles sized using d3.scaleLinear.

The same data (the numbers 20, 50, 150, 300) is used for each group of circles, but using a square root scale allows for mapping each data value to a circle's area, which is more perceptively correct for visualization purposes.

Built with blockbuilder.org