javascript - How can I get the tick values of a '.nice()'ed scale? -


i've created chart in d3 contains grid lines. i'm placing gridlines @ every tick on axis using axis' scale:

y0scale.ticks() 

the problem i'm having value of .ticks() doesn't seem take account face scale has had .nice() called. result of chart missing gridlines @ extents of axes.

i know combine y0scale.domain[0] , y0scale.domain[1] tick marks know about, doesn't work, in cases .nice() algorithm more adding tick value on min , max of scale.

you need call .ticks() after having called .nice() on scale.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -