mbostock/d3 — Issue #394: tick text not displayed - d3.scale.log
Author: mlehmann
Created: 2011-11-29 22:51:55+00:00
State: open

I took examples/zoom-pan/zoom-pan.html of version 2.6.0 and did the following change:

26,27c26,27
< var x = d3.scale.linear()
< .domain([-1.42, +1.42])
---
> var x = d3.scale.log()
> .domain([+1.0, +100000000.0])

The tick text 1e+6 is not displayed. This seems to be due to a rounding problem. If I change e = -2e-15; e = 2e-15 in function tickFormat of d3.scale.log the tick text is shown.