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/05/08 03:53:18 UTC

[GitHub] [echarts] 100pah opened a new issue #14888: Wrong token parse in rich text

100pah opened a new issue #14888:
URL: https://github.com/apache/echarts/issues/14888


   ### Version
   5.1.1
   
   ### Steps to reproduce
   ```js
   option = {
       legend: {
           formatter: '{a|{name}}',
           textStyle: {
               rich: {
                   a: {
                       width: 200
                   }
               }
           }
       },
       series: [
           {
               name: '访问来源',
               type: 'pie',
               data: [
                   {value: 1048, name: '搜索引擎{}'},
                   {value: 300, name: '视频广告'}
               ]
           }
       ]
   };
   ```
   
   ### What is expected?
   No space in the '{}' 
   
   ### What is actually happening?
   '{             }'
   
   <img width="540" alt="Screen Shot 2021-05-08 at 11 51 45 AM" src="https://user-images.githubusercontent.com/1956569/117525224-cf042080-aff3-11eb-9ebc-704c9f51bcb3.png">
   
   And I have not found a work around yet.
   
   <!-- 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