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 2022/04/20 04:22:08 UTC

[GitHub] [echarts] Mr-Lixiaoqaing opened a new issue, #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局

Mr-Lixiaoqaing opened a new issue, #16916:
URL: https://github.com/apache/echarts/issues/16916

   ### Version
   
   4.9x
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   series: [
                           {
                               name: 'Access From',
                               type: 'pie',
                               radius: '50%',
                               label: {
                                   alignTo: 'labelLine',
                                   formatter(data) {
                                       console.log(data.data)
                                       const {name, value} = data.data
                                       return "{block| ''}" + value + '测试'
                                   },
                                   rich: {
                                       block: {
                                           width: 5,
                                           height: 20,
                                           backgroundColor: '#f00',
                                       }
                                   },
                               },
                               data: [
                                   { value: 1, name: '测试' },
                                   { value: 2, name: '测试' },
                                   { value: 3, name: '测试' },
                               ],
                           }
                       ]
   
   ### Current Behavior
   
   ![image](https://user-images.githubusercontent.com/52234930/164143733-9c54b760-64ba-4ba4-816e-01801493b48f.png)
   图片为想要实现的效果,可以看到最外层为左右结构,然后右边是上下结构。但由于无法在formatter里面区分左右结构,因此在使用"\n"进行换行时,只能将内容分为"上下"两个部分。所以我没办法实现设计图上的效果。
   
   ### Expected Behavior
   
   希望能够在rich或者formatter中进行结构上的区分,就像html那样,以实现更丰富的效果
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   ![image](https://user-images.githubusercontent.com/52234930/164143256-e926ca29-e79b-4c57-8f82-e639d170b790.png)
   ![image](https://user-images.githubusercontent.com/52234930/164143303-b4a5d6a9-4a6f-4dc9-95e1-3c83d15a0f37.png)
   
   


-- 
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.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 #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16916:
URL: https://github.com/apache/echarts/issues/16916#issuecomment-1103456527

   @Mr-Lixiaoqaing It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   Rich can't chunk like html, resulting in some complex layouts not being implemented
   </details>


-- 
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] Ovilia commented on issue #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #16916:
URL: https://github.com/apache/echarts/issues/16916#issuecomment-1103570927

   Apache ECharts 中的富文本功能可以满足大部分场景下的布局需求,不过确实不可能满足所有场景需求,底层实现也和 html 完全不一样,不可能指望在 ECharts 内部实现一个类似 CSS 的复杂渲染引擎。


-- 
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 #16916: [Bug]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16916:
URL: https://github.com/apache/echarts/issues/16916#issuecomment-1103434345

   I'm sorry to close this issue for it lacks the necessary title. Please provide **a _descriptive_ and as _concise_ as possible title to describe your problems or requests** and then the maintainers or I will reopen this issue.
   
   Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.
   
   A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.
   
   Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.


-- 
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] Mr-Lixiaoqaing commented on issue #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局

Posted by GitBox <gi...@apache.org>.
Mr-Lixiaoqaing commented on issue #16916:
URL: https://github.com/apache/echarts/issues/16916#issuecomment-1103459423

   Sorry, I didn't use '\n' in the code screenshot, I'll fix it now
   ![image](https://user-images.githubusercontent.com/52234930/164150425-b6ed247e-c49d-4725-aa8c-6badcc9c8dde.png)
   ![image](https://user-images.githubusercontent.com/52234930/164150449-11fe32ad-b05f-42e5-8fde-e0744ff18e88.png)
   PS: Don't worry about the color
   


-- 
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] susiwen8 closed issue #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #16916: rich中无法像html一样分块,导致无法实现一些复杂的布局
URL: https://github.com/apache/echarts/issues/16916


-- 
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] closed issue #16916: [Bug]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #16916: [Bug] 
URL: https://github.com/apache/echarts/issues/16916


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