Skip to main content
100%

Scale comparison (work in progress)

✓ Published0🌍 Public
PPatrick Wojda
Last edited Jan 8, 2016
Created on Jan 8, 2016

This example demonstrates how different D3 scale types transform the same small dataset into distinct visual patterns. It renders circles whose radius, vertical position, and label depend on the scale’s output, placing each scale’s results in a separate horizontal row. The code uses `d3.scale.quantile`, `d3.scale.linear`, and `d3.scale.quantize`, all sharing the same domain, to compare their outputs. The visualization is a work in progress, showing the original data and three scaled variants, with each scale’s effective values or quantile boundaries printed beneath its circles.

AI-generated description

Similar vizzes