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
Post a Comment