Nvd3 Chart Partly Missing Grid Lines
In my chart here, if you can notice, it is missing grid lines for the first 4 and last 4 dates. I tried doing: .ticks(data[0].length) but it didnt help. What am I missing? jsFiddl
Solution 1:
Adding .showMaxMin(false) fixes the problem.
chart.xAxis
.showMaxMin(false)
.axisLabel("My X-Axis")
.tickFormat(function(d) { return d3.time.format('%x')(newDate(d)) });
Working example is here
Post a Comment for "Nvd3 Chart Partly Missing Grid Lines"