echarts设置了fontWeight为什么不起作用?

series : [
                            {
                                name: '资产名称',
                                type: 'pie',
                                radius : '60%',//饼图的半径。可以为如下类型:20% 表示外半径为可视区尺寸(容器高宽中较小一项)的 20% 长度
                                center: ['50%', '52%'],//饼图的中心(圆心)坐标,数组的第一项是横坐标,第二项是纵坐标
                                label:{
                                    fontWeight: '100',
                                    normal:{
                                        textStyle:{
                                            fontFamily:'Microsoft YaHei',
                                            fontSize: 16,
                                            color: 'black',
                                            fontWeight: 200
                                        },
                                        formatter:"{b}:{d}%"
                                    }
                                },
                                labelLine:{
                                    lineStyle:{
                                        color: 'black'
                                    }
                                },
                                data: asetSeriesData, //数据内容数组
                                itemStyle: {
                                    emphasis: {//高亮的扇区和标签样式。
                                        shadowBlur: 10,
                                        shadowOffsetX: 0,
                                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                                    }
                                }
                            }
                        ]

https://img1.mukewang.com/5c8b705b0001c2de08000471.jpg

慕桂英4014372
浏览 3883回答 2
2回答

慕桂英3389331

Microsoft Yahei对应 Light、Regular、Bold三种字重。font-weight:200,字体中没有可以直接匹配的字重如果指定的font-weight数值,即所需的字重,能够在字体中找到对应的字重,那么就匹配为该对应的字重。否则,使用下面的规则来查找所需的字重并渲染:·    如果所需的字重小于400,则首先降序检查小于所需字重的各个字重,如仍然没有,则升序检查大于所需字重的各字重,直到找到匹配的字重。·    如果所需的字重大于500,则首先升序检查大于所需字重的各字重,之后降序检查小于所需字重的各字重,直到找到匹配的字重。·    如果所需的字重是400,那么会优先匹配500对应的字重,如仍没有,那么执行第一条所需字重小于400的规则。·    如果所需的字重是500,则优先匹配400对应的字重,如仍没有,那么执行第二条所需字重大于500的规则
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Html5