消息关闭
    暂无新消息!
百度Echarts如何设置图的大小?
像这样的,
上面和下面都有间距,我想把图放大点,就是充满整个页面,
但是不知道该这么改,求大神……谢谢
地图和其他类型的图是不是都一样?求大神解答,在线等
急急急……

4个回答

︿ 1
用grid:{
                    bottom:5,
                    top:5
                }
︿ 0
series : [
        {
            name:'访问来源',
            type:'pie',
            radius : '95%',
            center: ['50%', '50%'],
            data:[
                {value:335, name:'直接访问'},
                {value:310, name:'邮件营销'},
                {value:274, name:'联盟广告'},
                {value:235, name:'视频广告'},
                {value:400, name:'搜索引擎'}
            ].sort(function (a, b) { return a.value - b.value}),
            roseType: 'angle',
            label: {
                normal: {
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.3)'
                    }
                }
            },
            labelLine: {
                normal: {
                    lineStyle: {
                        color: 'rgba(255, 255, 255, 0.3)'
                    },
                    smooth: 0.2,
                    length: 10,
                    length2: 20
                }
            },
            itemStyle: {
                normal: {
                    color: '#c23531',
                    shadowBlur: 200,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]

改变radius的百分比