It appears there is no easy way to change the base of d3.scale.log from 10 to something else. Would it be possible to add a d3.scale.log.base() function to do this?
+1 -- this would definitely be useful.
The code is mostly setup to support this, although you’d have to change the scale.ticks method to not assume base 10, in addition to exposing a scale.base method to reassign the internal log (and log.pow) function.
I have the same issue with the base 2 log. I changed all Math.LN10 to 1 in d3.v3.js. I am not sure if this is the correct way to achieve the base 2 log scale on the axis. Reading the source code is quite difficult for me.
Thank for providing this great tool for the open source community
Add d3.scale.log base. Fixes #928.
Still need to implement sensible behavior for log.ticks without base 10, but I
haven't decided what would be appropriate yet.
Check out the scale-log-base branch and let me know if that works for you.
Staged in #1120.