fixed maxmin tick label positioning when axis is oriented 'top'

master
Tyler Wolf 11 years ago
parent 4c6c8da076
commit 7eab35d829

@ -95,7 +95,7 @@ nv.models.axis = function() {
return 'translate(' + scale(d) + ',0)' return 'translate(' + scale(d) + ',0)'
}) })
.select('text') .select('text')
.attr('dy', '0em') .attr('dy', '-0.5em')
.attr('y', -axis.tickPadding()) .attr('y', -axis.tickPadding())
.attr('text-anchor', 'middle') .attr('text-anchor', 'middle')
.text(function(d,i) { .text(function(d,i) {

Loading…
Cancel
Save