如图,蓝色背景是容器,但是echarts图上下左右还有很多空间.导致显示不够.怎么铺满一点?
tooltip: {
formatter: "{a}
{b} : {c}%"
},
grid: {
top: 0,
bottom: 0
},
toolbox: {
show: false
},
pointer: {
length: '10%',
width: 4,
color: 'auto'
},
series: [{
name: '总数',
type: 'gauge',
max: 100,
detail: {
formatter: '{value}',
offsetCenter: [0, '10%'],
textStyle: {
color: 'auto',
fontSize: 12
}
},
data: [{ value: 50, name: '总数' }]
}]
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这是echarts2文档里的grid,但是这些参数在3里大部分好像也是好使的,我是用了
x和x2来调整左右两边的间距,你可以试一下另外附上echarts3的grid的文档链接描述
仪表盘类型的图在series属性里面加上 radius: '100%',就可以占满了~
看下这个http://echarts.baidu.com/opti...