billboard.js
billboard.js copied to clipboard
Logarithmic scale does not render correctly
Description
When using a logarithmic scale on the y axis, the rendered spacing of the log periods are not equal. This seems to be an issue only below 10.
Steps to check or reproduce
The graph in this example should be a straight line, with equal rendered spacing of 0.01, 0.1, 1, 10, 100, 1000. https://jsfiddle.net/nk17wtd6/1/
Hi @andrewbdfisher. For log
scale, billboard.js uses d3.js' Symlog Scales and for the dataseries [0.01, 0.1, 1, 10, 100, 1000]
it renders as the example you shared.
- https://jsfiddle.net/netil/f4qy3xn6/