.attr('y',rotateYLabel?(-Math.max(margin.left,width)+12):-10)//TODO: consider calculating this based on largest tick width... OR at least expose this on chart
.attr('y',rotateYLabel?(-Math.max(margin.left,width)+axisLabelDistance):-10)//TODO: consider calculating this based on largest tick width... OR at least expose this on chart
,axisLabelDistance=12//The larger this number is, the closer the axis label is to the axis.
;
;
axis
axis
@ -210,7 +211,7 @@ nv.models.axis = function() {
axisLabel
axisLabel
.style('text-anchor',rotateYLabel?'middle':'end')
.style('text-anchor',rotateYLabel?'middle':'end')
.attr('transform',rotateYLabel?'rotate(-90)':'')
.attr('transform',rotateYLabel?'rotate(-90)':'')
.attr('y',rotateYLabel?(-Math.max(margin.left,width)+12):-10)//TODO: consider calculating this based on largest tick width... OR at least expose this on chart
.attr('y',rotateYLabel?(-Math.max(margin.left,width)+axisLabelDistance):-10)//TODO: consider calculating this based on largest tick width... OR at least expose this on chart