billboard.js icon indicating copy to clipboard operation
billboard.js copied to clipboard

Logarithmic scale does not render correctly

Open andrewbdfisher opened this issue 2 years ago • 1 comments

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/

andrewbdfisher avatar Sep 09 '22 17:09 andrewbdfisher

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/

netil avatar Sep 15 '22 06:09 netil