dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Duplicate Y-Axis labels through rounding

Open lab-w opened this issue 4 years ago • 1 comments

Using dygraphs to plot data with more digits after decimal than the "digitsAfterDecimal" option (default: 2) leads sometimes to duplicate labels on the Y-axis.

In this jsfiddle example I see two labels named "0.05" and two labels named "0.06". A much more appreciated version would be to leave out rounded labels when the same value is already shown on the axis.

https://jsfiddle.net/ujsxnc7r/

I'm using dygraphs 2.1.0.

lab-w avatar Apr 21 '20 09:04 lab-w

Ouch. Agreed, but tricky.

mirabilos avatar Jan 25 '23 05:01 mirabilos