Skip to main content
100%

Natural Log Scale

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Nov 23, 2013

A natural-logarithmic y-axis displays a polynomial curve from x=0 to 100, with tick labels formatted as "e⁰" through "e⁹" using Unicode superscripts. The example uses d3.v3 with `d3.scale.log` and `d3.svg.axis`, applying a custom `tickFormat` that converts log values to superscript exponents. The line is drawn with `d3.svg.line`, while the SVG output includes styled axis text and a steelblue path. The data series is generated procedurally as `[x, x²+x+1]` for 100 points.

AI-generated description

Using Unicode superscripts to format ticks for a natural-log <i>y</i>-scale.

gpl-3.0 Licensed

Similar vizzes