js文件地址:

<script type="text/javascript"
        src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>

入门Demo:
https://blog.csdn.net/qq_35713752/article/details/93493220
菜鸟教程:
https://www.runoob.com/echarts/echarts-ajax-data.html

直接显示文字:show=true

series: [{
            name: '个数',
            type: 'pie',
            radius: ['30%', '70%'],
            avoidLabelOverlap: false,
            label: {
                normal: {
                    show: true,  // 这里
                    position: 'inner',
                    formatter: '{b}\n\n{d}%',
                    textStyle: {
                        fontSize: '23',
                    }
                },
                emphasis: {
                    show: true,
                    textStyle: {
                        fontSize: '25',
                        fontWeight: 'bold'
                    }
                }
            },
...

文字位置:
https://blog.csdn.net/qq_38974638/article/details/112202879

调整legend显示文字和百分比【不会】
https://blog.csdn.net/liuzc0221/article/details/109511074
https://blog.csdn.net/weixin_44202904/article/details/115243573

https://zhuanlan.zhihu.com/p/58888287

posted on 2022-05-11 06:15  西伯尔  阅读(271)  评论(0编辑  收藏  举报