Using an nvd3 multibyte diagram. With minimal bars, the x-axis mark is not displayed in the center, like an axis.
Sample code to generate an x-axis label.
chart = nv.models.multiBarChart().margin({
top: 30,
right: 28,
bottom: 50,
left: 60
})
.x(function(d) {
return d.x
})
.y(function(d) {
return d.y
})
.color(d3.scale.myColors().range());
chart.xAxis
.showMaxMin(true)
.axisLabel(xAxisLabel)
.tickFormat(xAxisTickFormat)
.tickValues(xaxisValues);

How to solve this problem?
source
share