Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The distance between the icon and the title is too far. How do you get him closer? #14837

Closed
bbhxwl opened this issue Apr 29, 2021 · 1 comment
Labels
invalid This issue was not created using the issue template.

Comments

@bbhxwl
Copy link

bbhxwl commented Apr 29, 2021

The distance between the icon and the title is too far. How do you get him closer?

var chartDom = document.getElementById('divNianLing');
            var myChart = echarts.init(chartDom);
            var option;
            option = {
                title: {
                    text: '运动医生',
                    left: 'center',
                    y: 'bottom', 
                    textStyle: {//主标题文本样式{"fontSize": 18,"fontWeight": "bolder","color": "#333"}
                        fontSize: 16,
                        fontWeight: 'bold',
                        color: 'white',
                       
                    },
                    itemGap: 0  
                },
                //grid: {
                //    top: '60%',
                //    left: '60%',
                //    right: '60%',
                //    bottom: '60%',
                //    containLable: true
                //},
                tooltip: { 
                    trigger: 'item',
                    formatter: '{a} <br/>{b}: {c} ({d}%)'
                },
                //legend: {
                //    top: '5%',
                //    left: 'left',
                //    textStyle: {//图例文字的样式
                //        color: '#ccc',
                //        fontSize: 16
                //    }
                //},
                series: [
                    {
                        name: '性别',
                        type: 'pie',
                        
                        radius: ['20%', '40%'],
                        label: {
                            show: false
                        },
                        labelLine: {
                            show: false
                        },
                        data: [
                            { value: 10, name: '男', itemStyle: { normal: { color:'#DBDB00'}} },
                            { value: 15, name: '女', itemStyle: { normal: { color: '#FF6A64' } } }
                         
                        ]
                    },
                    {
                        name: '用户年龄',
                        type: 'pie',
                        radius: ['45%', '60%'],
                         label: {
                            show: false,
                            position: 'center'
                        },
                        labelLine: {
                            show: false
                        },
                        data: [
                            { value: 1048, name: '0-35岁', itemStyle: { normal: { color: '#00DB81' } } },
                            { value: 335, name: '35-50岁', itemStyle: { normal: { color: '#06B6FF' } }},
                            { value: 310, name: '50-65岁', itemStyle: { normal: { color: '#4A75FF' } }},
                            { value: 251, name: '65岁以上', itemStyle: { normal: { color: '#DF80D1' } } },
 
                        ]
                    },
                
                ]
            };


            option && myChart.setOption(option);
@echarts-bot echarts-bot bot added the invalid This issue was not created using the issue template. label Apr 29, 2021
@echarts-bot
Copy link

echarts-bot bot commented Apr 29, 2021

This issue is not created using issue template so I'm going to close it. 🙊
Sorry for this, but it helps save our maintainers' time so that more developers get helped.
Feel free to create another issue using the issue template.

If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.

这个 issue 未使用 issue 模板 创建,所以我将关闭此 issue。
为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
如果您愿意,请使用 issue 模板重新创建 issue。

如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。

@echarts-bot echarts-bot bot closed this as completed Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This issue was not created using the issue template.
Projects
None yet
Development

No branches or pull requests

1 participant