이 하이 차트 그래프가 있는데 차트를 둘러싼 모든 숫자의 왼쪽에 직접 표시되는 "합계"또는 "백분율"과 같은 레이블을 추가하려고합니다. html 사용을 피하기 위해 highcharts에서 이것을하는 우아한 방법이 있는지 궁금합니다. 그것은 보이지 않거나 뭔가있는 여분의 칼럼과 같은 것입니다. 감사!하이 열 차트 왼쪽에 직접 레이블을 표시하려고합니다
new Highcharts.Chart({
"chart":{
"renderTo":setup.renderTo, // dynamic
"type":"column",
"width": 400,
"height": 150 - setup.offset,
"backgroundColor":"rgba(255,255,255,0)",
borderWidth:0,
borderColor:'#fff'
},
"title":{
"text":""
},
"legend":{
"enabled":false
},
"credits":{
"enabled":false
},
xAxis:[{
categories:setup.x_mixed,
maxZoom:5,
minPadding: 0.2,
labels:{
"enabled":setup.categories_label,
"y":16,
"style":{
"fontSize":13,
"color":"#999",
fontFamily:"'helvetica neue',helvetica",
whiteSpace:"nowrap",
textOverflow:"clip",
width:"100%",
marginTop:legendSpacing
},
formatter:function() {
return this.value.split("|")[0]
}
},
lineColor:"rgba(255,255,255,0)",
tickWidth:0,
offset:0
},{
categories:setup.x_mixed,
maxZoom:5,
minPadding: 0.2,
linkedTo: 0,
labels:{
"enabled":true,
"y":16,
"style":{
"fontSize":10,
"color":"#999",
fontFamily:"'helvetica neue',helvetica",
whiteSpace:"nowrap",
textOverflow:"clip",
width:"100%",
marginTop:legendSpacing
},
formatter:function() {
return this.value.split("|")[1]
}
},
lineColor:"rgba(255,255,255,0)",
tickWidth:0,
opposite: setup.categories_label,
offset: -13 - setup.offset
},{
categories:setup.x_mixed,
maxZoom:5,
minPadding: 0.2,
linkedTo: 0,
labels:{
"enabled":true,
"y":16,
"style":{
"fontSize":10,
"color":"#999",
fontFamily:"'helvetica neue',helvetica",
whiteSpace:"nowrap",
textOverflow:"clip",
width:"100%",
marginTop:legendSpacing
},
formatter:function() {
return this.value.split("|")[2]
}
},
lineColor:"rgba(255,255,255,0)",
tickWidth:0,
opposite: setup.categories_label,
offset: - setup.offset
}],
"yAxis":{
"title":{
"text":false
},
"gridLineWidth":0,
"labels":{
"enabled":false
},
"lineColor":"rgba(255,255,255,0)",
"max":setup.max_p,
"min":2,
reversed:setup.reversed
},
"plotOptions":{
"column":{
"color":setup.option_color,
"shadow":false,
"borderColor":"#fff",
"borderWidth":0,
groupPadding:0.07,
pointPadding:0.01
}
},
tooltip:{
shared: true,
backgroundColor:'rgba(0,0,0,0.8)',
style:{
color:'#ffffff'
},
borderWidth:0,
shadow:false,
formatter:function() {
if (navigator.userAgent.match(/msie/i)) {
var response = setup.who + " " + this.x.split("|")[0] + " Fans : " + StringHelper.numberFormat(parseInt(this.y), 'flatCommas');
return response;
} else {
var response = setup.who + " " + this.x.split("|")[0] + "<br/>Fans : " + StringHelper.numberFormat(parseInt(this.y), 'flatCommas');
return response;
}
}
},
"series":[
{
"name":"series",
"data":setup.data
// "data": [1232, 4673, 1823, 186, 85, 15, 36]
}
]
});
코드는 어디에 있습니까? –
죄송합니다, 거기에 – natecraft1