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/09/14 08:06:31 UTC
[GitHub] [echarts] cornelius-git opened a new issue #15718: rich富文本
cornelius-git opened a new issue #15718:
URL: https://github.com/apache/echarts/issues/15718
### What problem does this feature solve?
rich中的backgroundcolor中的image不能使用回调函数,我想让每个柱状图根据条件显示不同的不同图片如何操作?rich中的background只能输入固定的图片连接。
### What does the proposed API look like?
能在rich中使用回调函数,label中能根据数据匹配。
<!-- 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 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
[GitHub] [echarts] beydeng commented on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
beydeng commented on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-948291981
@cornelius-git 最后找到好的办法来处理这个动态添加图片的方法了么?
--
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
[GitHub] [echarts] beydeng commented on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
beydeng commented on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-948211701
Same problem. In Rich, you need to define each image, or 100 styles for 100 cases
--
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
[GitHub] [echarts] echarts-bot[bot] commented on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-918913912
--
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
[GitHub] [echarts] Pandora1m2 edited a comment on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
Pandora1m2 edited a comment on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-924641334
在formatter写逻辑就行咯 , 直接定义成不同的rich规则
```
formatter: function (value, index) {
if (index >= 3){
return `{imgOther|${index+1} } ${value}`
}
return `{img${index}|} ${value}`
},
rich: {
text:{
// height: '18',
width: '1',
},
img0: {
height: '21',
width: '2',
backgroundColor: {image: _this.img0}
},img1: {
height: '21',
width: '2',
backgroundColor: {image: _this.img1}
},img2: {
height: '21',
width: '2',
```

--
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
[GitHub] [echarts] plainheart commented on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-919008673
可以先提前根据数据动态生成 rich object
--
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
[GitHub] [echarts] Pandora1m2 commented on issue #15718: rich富文本
Posted by GitBox <gi...@apache.org>.
Pandora1m2 commented on issue #15718:
URL: https://github.com/apache/echarts/issues/15718#issuecomment-924641334
```
formatter: function (value, index) {
if (index >= 3){
return `{imgOther|${index+1} } ${value}`
}
return `{img${index}|} ${value}`
},
rich: {
text:{
// height: '18',
width: '1',
},
img0: {
height: '21',
width: '2',
backgroundColor: {image: _this.img0}
},img1: {
height: '21',
width: '2',
backgroundColor: {image: _this.img1}
},img2: {
height: '21',
width: '2',
```

--
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