5
NVD3 다중 막 대형 차트에 축 레이블을 추가하려하지만 x 축에서만 작동하는 것처럼 보입니다. 이 주위에 어떤 방법이 있습니까?NVD3 다중 막대 차트에 y 축 레이블 추가
여기 예제를 설정 한 :
var chart = nv.models.multiBarChart();
chart.xAxis
.tickFormat(d3.format(',f'));
chart.yAxis
.tickFormat(d3.format(',.1f'));
chart.xAxis.axisLabel("x axis");
chart.yAxis.axisLabel("y axis");
큰 도움이 덕분에 희망! 나는 축과 라벨 사이의 간격을 줄이기 위해''''chart.yAxis.axisLabel (scope.ylab) .axisLabelDistance (40)'''를 사용하는 것으로 끝났다. – user3170702