我的项目中有各种滑块。此滑块用于不同产品的价格,在滑块的滑块上,我动态获取滑块的值并使用 jq chart this显示饼图。但是如果我滑动 1 个滑块,我在 IE 8 中看不到饼图的正确颜色,但在幻灯片 f 2 滑块上,可以看出这个问题仅存在于 IE9 上的 IE 8 和其他浏览器中,它工作得非常好。一定是什么问题?
下面是我的java脚本代码
$('#pie_chart').jqChart({
legend: {
title: {
text: ''
},
border: {
lineWidth: 1,
strokeStyle: 'black'
}
},
shadows: {
enabled: true
},
series: [{
type: 'pie',
data: data12,
labels: {
stringFormat: '%d%',
valueType: 'percentage',
font: '12px sans-serif',
fillStyle: 'white'
},
strokeStyle: '#afcd47',
lineWidth: 1
}]
});
data12 是由要显示的图例和要显示的饼图的值组成的数组。