在我堆叠的条形高度图中,你会看到我把我的最后一个系列设置为灰色。是否有任何方法将文本颜色设置为黑色,而该系列背景色是灰色的?
plotOptions: {
series: {
stacking: 'percent',
},
bar: {
stacking: 'percent',
dataLabels: {
enabled: true,
format: '{y}%',
style: {
color: '#ffffff' //This is where i set the color to white
}
}
}
}http://jsfiddle.net/jimbob25/V446C/
发布于 2014-01-15 15:12:23
您可以分别为每个系列设置颜色,请参见:http://jsfiddle.net/V446C/5/
series: [{
name: 'Poor',
color: '#E9E9E9',
data: [12, 23, 13, 18, 7, 19, 9],
dataLabels: {
style: {
color: '#000000'
}
}
}, {
name: 'Satisfactory',
color: '#629AC0',
data: [42, 45, 35, 57, 29, 61, 26]
}, {
name: 'Excellent',
color: '#006FBC',
data: [46, 32, 52, 25, 64, 20, 65]
}]https://stackoverflow.com/questions/21139696
复制相似问题