Skip to main content
100%

Classical Scales

✓ Published0🌍 Public
GGerHobbelt
Last edited Sep 9, 2012
Created on Sep 2, 2012

This example showcases a wide array of classical D3.js scale types, each rendered as a horizontal axis line. It demonstrates linear, logarithmic, power, square root, quantile, quantize, threshold, and identity scales, alongside variations in tick subdivision and styling. The visualization uses the vanilla `d3.scale` and `d3.svg.axis` APIs from d3.v2 to generate the SVG output, with each scale's domain and range carefully constructed to highlight its unique behavior.

AI-generated description

D3.js Axes …… <a href="http://bl.ocks.org/3605069" title="view this gist via bl.ocks.org">∆</a> <a href="http://bl.ocks.org/GerHobbelt" title="view a list of all my gists at bl.ocks.org">∞</a>

This gist accompanies this gist which showcases the augmented axes component: here we see these axes rendered (if at all possible) using the mbostock d3 master head, i.e. 'vanilla d3'.

Related gists

  • gist 3605035: a series of linear axes with varying degress of sophistication, using the advanced d3.axis component
  • gist 3605069: same code, with crash protection wrappers, for vanilla D3.js (use to see how many of these vanilla D3.js supports today)
  • gist 3605124: reduced code suitable for use with vanilla D3.js v2.10 as is, with crash protection wrappers

Similar vizzes