Css 设置Highcharts饼图的不透明度
在设置饼图的不透明度时,我对IE8有一个问题。我试着如下Css 设置Highcharts饼图的不透明度,css,internet-explorer,opacity,highcharts,pie-chart,Css,Internet Explorer,Opacity,Highcharts,Pie Chart,在设置饼图的不透明度时,我对IE8有一个问题。我试着如下 .highcharts-point { filter:alpha(opacity=40); } 应用此选项时,饼图点将不可见,其边框将变为灰色 有人知道解决方案吗?我遵循了这一点,解决了我的问题您可以设置系列的颜色: var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderT
.highcharts-point {
filter:alpha(opacity=40);
}
应用此选项时,饼图点将不可见,其边框将变为灰色
有人知道解决方案吗?我遵循了这一点,解决了我的问题您可以设置系列的颜色:
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
defaultSeriesType: 'column'
},
xAxis: {
categories: ['1','2']
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: 'Tokyo',
data: [95.6, 54.4]
}, {
name: 'New York',
data: [106.6, 92.3]
}, {
name: 'London',
data: [59.3, 51.2]
}, {
name: 'Berlin',
data: [46.8, 51.1],
color: 'rgba(150,100,50,0.5)'
}]
});
});
请注意此处使用颜色定义的最后一个系列。尝试以下操作:
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
defaultSeriesType: 'column',
type: 'area', //this is also needed
},
plotOptions: {
series: {
fillOpacity: 0.1
}
}, ...
jsfiddle:如果您已经找到了解决方案,那么最好将其作为答案发布并接受答案。