饼状图:
取消hover的状态
x和y轴:
yAxis: {
type: 'category',
data: ['实例','流程'],
axisTick:{ // 是否显示刻度
show:false,
},
axisLine:{ // 轴线的设置,eg:轴的颜色
lineStyle:{
color:'#D9D9D9',
}
},
axisLabel:{ // 轴文字的设置
color:"#4F6472",
fontSize:16,
}
},
柱状图的一些参数:
series: [
{
name: '当前',
type: 'bar',
data: [5, 2,],
itemStyle:{ // 柱子的设置
color:"#3CC1C2", // 柱子颜色
barBorderRadius: [ 0,2, 2, 0], // 柱子的圆角
},
label:{ // 柱子上数字的设置
show:true,
position:'right',
// distance:8,
color:"#4F6472",
formatter:function(params){ // 柱子上提示的数字:dataIndex是第几个;
console.log("参数:",params);
return params.value+'('+(params.value/that.totalArr[params.dataIndex]*100).toFixed(0)+'%)';
},
// formatter:'{c}({c}/6)',
},
barCategoryGap:'40%', // 系列之间的间距。
}
]
echarts铺满整个div的方法: 即:grid
https://blog.csdn.net/caimaomaocai/article/details/81141670
默认选中:
https://blog.csdn.net/hen1183392934/article/details/86231329
ECharts在柱状图的柱子上方显示数量的方法
https://www.cnblogs.com/ihaokun/p/9808578.html