CuoYuCuoYe 2016-10-31 07:53 采纳率: 0%
浏览 3129

ie8下Echarts柱状图不显示,但折线和饼状图是可以的

disabledComposition: function () {
var option = {
tooltip: {
trigger: 'item'
},
calculable: true,
grid: {
borderWidth: 0,
y: 80,
y2: 60
},
xAxis: [
{
type: 'category',
show: false,
data: ['听力残疾', '视力残疾', '智力残疾', '肢体残疾', '精神残疾', '言语残疾']
}
],
yAxis: [
{
type: 'value',
show: false
}
],
series: [
{
name: '人口数量统计',
type: 'bar',
itemStyle: {
normal: {
color: function(params) {
var colorList = [
'#26C0C0','#259e2e','#FCCE10','#cccccc','#7b68ee','#00fa9a'

];
return colorList[params.dataIndex]
},
label: {
show: true,
position: 'top',
formatter: '{b}\n{c}'
}
}
},
data: [2010,210,1080,40,100,108],
markPoint: {
data: [
{xAxis:0, y: 350, name:'听力残疾'},
{xAxis:1, y: 350, name:'视力残疾'},
{xAxis:2, y: 350, name:'智力残疾'},
{xAxis:3, y: 350, name:'肢体残疾'},
{xAxis:4, y: 350, name:'精神残疾'},
{xAxis:5, y: 350, name:'言语残疾'}
]
}
}
]
};
var disabledCompositionEchart = echarts.init(document.getElementById("disabledComposition"));
disabledCompositionEchart.setOption(option,true);
}

    上面是柱状图的代码,都严格了,没逗号的问题。。但ie8下还是出不来,求大神
  • 写回答

2条回答 默认 最新

  • LBL121520 2016-10-31 09:58
    关注

    你f12注意下是不是这之前的js有问题,ie8比较娇气,有一个js不兼容就可能死一片

    评论

报告相同问题?

悬赏问题

  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常
  • ¥15 关于风控系统,如何去选择