1
我正在使用一些PHP循环为个人生成一系列图表。我试图将X轴类别点放置在每列顶部的列上。该relavent代码:Highcharts堆叠列顶部的X轴值
xAxis: {
categories: [<?php echo implode(',', $year); ?>],
title: {
text: 'Year'
}
},
yAxis: [{
min: 0,
title: {
text: 'ADR'
},
stackLabels: {
enabled: true,
formatter: function() {
return '<b>' + this.x.category + '</b>';
},
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
}
},
我不确定如何去这个我试过this.x
,this.x.category
,this.x.value
现在为止,我已经无法让我的x轴类别值。我如何在Highcharts中做到这一点?
非常感谢你,这是对我帮助很大 – Jonnny