You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/06/16 10:01:38 UTC
[GitHub] [echarts] niuweili opened a new issue #15165: legend.textStyle. lineHeight 无效
niuweili opened a new issue #15165:
URL: https://github.com/apache/echarts/issues/15165
### Version
5.1.2
### Reproduction link
[https://echarts.apache.org/zh/option.html#legend.textStyle.lineHeight](https://echarts.apache.org/zh/option.html#legend.textStyle.lineHeight)
### Steps to reproduce
在最新的官方文档示例中:https://echarts.apache.org/zh/option.html#legend.textStyle.lineHeight
设置“legend.textStyle.lineHeight = 80”不会生效,但是如果设置了 “legend.textStyle.backgroundColor = 'rgba(251, 114, 114, 1)'",lineHeight属性就会生效
不生效的配置:
```javascript
legend: {
textStyle: {
lineHeight: 80
}
},
```
生效的配置:
```javascript
legend: {
textStyle: {
lineHeight: 80,
backgroundColor: "rgba(251, 114, 114, 1)"
}
},
```
*在旧版本api中设置则没有出现这个问题*
### What is expected?
单独设置legend.textStyle.lineHeight生效
### What is actually happening?
单独设置legend.textStyle.lineHeight不生效,必须要设置一个legend.textStyle.backgroundColor背景色
---
加油!
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #15165: legend.textStyle. lineHeight 无效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15165:
URL: https://github.com/apache/echarts/issues/15165#issuecomment-862225825
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] closed issue #15165: legend.textStyle. lineHeight 无效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #15165:
URL: https://github.com/apache/echarts/issues/15165
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org