在highcharts api文档中找不到每个轴的颜色值。换句话说,我的意思是改变每个轴的左/下数字的颜色。
当前,Axis的配置如下:
xAxis: {
lineColor: '#d8efe3',
labels: {
formatter: function() {
return this.value; // clean, unformatted number for year
}
}
},
yAxis: {
lineColor: '#d8efe3',
gridLineColor: '#d8efe3',
title: {
text: null
},
labels: {
formatter: function() {
return this.value / 1000 +'k';
}
}
},
Run Code Online (Sandbox Code Playgroud)
编辑:该图表没有什么特别之处,无论如何都假定该图表是如此简单:http : //jsfiddle.net/highcharts/llexl/
我相信您指的是labels。只是改变style了yAxis label。
xAxis: {
lineColor: '#d8efe3',
labels: {
formatter: function() {
return this.value; // clean, unformatted number for year
}
}
},
yAxis: {
labels: {
style: {
color: 'orange'
},
formatter: function() {
return this.value / 1000 +'k';
}
},
lineColor: '#d8efe3',
gridLineColor: '#d8efe3',
title: {
text: null
}
},
Run Code Online (Sandbox Code Playgroud)
希望这会有所帮助,如果您有任何疑问,请通知我!