1、饼状图指示线改变颜色:series.labelLine.lineStyle
series : [
{
name:'默认文字',
type:'pie',//类型饼状图
hoverAnimation:false,//去掉悬停效果
radius : ['0', '126px'],//半径长度
center: ['50%', '50%'], //圆心位置
labelLine:{
lineStyle:{
color:'#e1e1e1',
}
},
]
2、改变echarts颜色:color
color: ['#5f9dff','#6be1c1','#ffed79','#ee5959','#7d92d4']
3、去掉悬停效果:hoverAnimation:false,
4、radius 半径长度,内半径,外半径,内半径大时为弧形
center 圆心位置,距离top,距离left
radius : ['0', '126px'],
center: ['50%', '50%'],
5、设置提示框大小(首先将默认padding设置为0,默认padding为5)
extraCssText:'width:210px;height:72px;',
6、x,y轴设置
xAxis : [
{
type :'category',//类目
data : ['个人pc', '未知', '赵雪松'],
axisTick: {
alignWithLabel:true},//x轴的字体样式
axisLabel: {
show:true, //控制坐标轴x轴的文字是否显示
textStyle: {
color:'#758697', //x轴上的字体颜色
fontSize:'16' //x轴字体大小
}<