1
값이 0 인 경우 라벨 안의 숫자를 숨기는 코드가 있습니다. 내 문제는 또한 열 위에 표시되는 합계 번호를 숨기려고하는 것입니다.0 인 경우 stacklabel을 숨기기
다음은 마지막 레이블 인 예제입니다. http://jsfiddle.net/4NxYh/72/
plotOptions: {
line: {dataLabels: {enabled: true, style: {fontSize: '8px'}, style: {textShadow: false}, allowDecimals: true, formatter: function() {return this.y + 'e'}}},
column: {stacking: 'normal', shadow: false, dataLabels: {
formatter:function() {
if(this.y != 0) {
return this.y;
}
},
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
style: {
textShadow: '0 0 3px black',
fontSize: '8px'
}
}},
series: {minPointLength: 0}
},
마이크, 매우 도움이됩니다. – Andy