求助 现在急用 才开始学
echarts吧
全部回复
仅看楼主
level 1
2017年06月14日 05点06分 1
level 1
这个柱形图 怎么这样显示的啊,还有就是这个饼图那个线怎么去掉呢;
title: {
text: '接口调用总次数',
// subtext: '2000000.00',
x: "center",
y: "center",
textStyle: {
fontSize: 17,
color: '#AAAAAA' // 主标题文字颜色
},
},
grid: {
left: '0%',
right: '0%',
bottom: '0%',
top:'20%',
containLabel: true
},
xAxis: {
splitNumber: 0,
data: ['正常', '异常'],
position: 'inside',
axisLabel: {
inside: true,
textStyle: {
//fontWeight:0,
fontSize : '10',
color: ['#FFFFFF']
}
},
axisTick: {
show: false
},
axisLine: {
show: false
},
z: 10
},
yAxis : [
{show : false,
type : 'value'
}
],
series :[{
//name: '手机品牌',
//设置柱子的宽度
barWidth : 30,
type: 'bar',
data: [ 700000,70000],
//配置样式
itemStyle: {
//通常情况下:
normal:{
            //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
color: function (params){
var colorList = ['rgb(159,121,238)','rgb(255,140,105)'];
return colorList[params.dataIndex];
},label: {
position: 'top',
show: true,//是否展示
textStyle: {
fontWeight:'',
fontSize : '10',
fontFamily : '微软雅黑',
color: '#0A0A0A'
}
},
},
//鼠标悬停时:
//emphasis: {
// shadowBlur: 10,
// shadowOffsetX: 0,
// shadowColor: 'rgba(255,255,255)'
// }
},
}
]
}
2017年06月14日 05点06分 2
这是option
2017年06月14日 05点06分
1