meifu2027 opened a new issue #9980: 主标题和副标题单独设置样式无法生效 URL: https://github.com/apache/incubator-echarts/issues/9980 ### Version 4.2.1-rc1 ### Steps to reproduce 打开https://www.echartsjs.com/examples/editor.html?c=pie-simple 输入以下配置 ``` option = { title : { text: '单个工单平均反馈次数', // x:'center', textStyle:{ align: 'center' }, subtext: '传输专业', subtextStyle:{ color:'black', fontWeight: 'bolder', fontSize:'18', align: 'left', verticalAlign :'top', rich: { backgroundColor: 'blue' } } }, tooltip : { trigger: 'item', formatter: "{b} : {c} ({d}%)" }, legend: { orient: 'vertical', left: 'left', top: 'bottom', data: ['1-5次','6-10次','10-20次','20 次'] }, series : [ { name: '访问来源', type: 'pie', radius : '55%', center: ['50%', '60%'], data:[{value:335, name:'1-5次'}, {value:310, name:'6-10次'}, {value:234, name:'10-20次'}, {value:135, name:'20 次'} ], itemStyle: { emphasis: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } }, label:{ show : true, position : 'inside',//inside outside formatter: '{d}' '%' } } ] }; ``` ### What is expected? 主标题居中,副标题居左上角并且存在背景色为蓝色 ### What is actually happening? 主标题和副标题都居左,并且副标题没有蓝色背景色 <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
