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 2019/12/20 03:16:13 UTC

[GitHub] [incubator-echarts] brohan1705 opened a new issue #11884: 希望能够支持name相同的两个图例

brohan1705 opened a new issue #11884: 希望能够支持name相同的两个图例
URL: https://github.com/apache/incubator-echarts/issues/11884
 
 
   ### What problem does this feature solve?
   在涉及手机号等需要做用户隐私保护业务场景下,可能会存在重复的name值。
   例如 123-4567-8900 和 123-7654-8900两个不同手机号,为避免用户个人信息泄露,后台接口返回给浏览器的结果已被处理为123-****-8900这种格式,这种情况会出现重复的name值,此时图表无法正常显示。
   
   ### What does the proposed API look like?
   对legend.data[i]增加id或其他作为可key的属性,默认值为legend.data[i].name,  
   同事series[i].data[i]也增加对应的属性。  
   期望使用legend配置格式如下:  
   ```
   legend: {
       data: [{
           name: 'Name1',
           id: 'key1'
       }]
   }
   ```
   
   <!-- 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] 100pah commented on issue #11884: 希望能够支持name相同的两个图例

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #11884: 希望能够支持name相同的两个图例
URL: https://github.com/apache/incubator-echarts/issues/11884#issuecomment-568783237
 
 
   可以看到您的图表的大概样子么?

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] brohan1705 commented on issue #11884: 希望能够支持name相同的两个图例

Posted by GitBox <gi...@apache.org>.
brohan1705 commented on issue #11884: 希望能够支持name相同的两个图例
URL: https://github.com/apache/incubator-echarts/issues/11884#issuecomment-569630711
 
 
   > 自己生成唯一 id 作为 name,然后用 legend.formatter 可以达到你想要的效果哦
   
   多谢,我想应该是可以,我试一下

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] sunui commented on issue #11884: 希望能够支持name相同的两个图例

Posted by GitBox <gi...@apache.org>.
sunui commented on issue #11884: 希望能够支持name相同的两个图例
URL: https://github.com/apache/incubator-echarts/issues/11884#issuecomment-569606741
 
 
   自己生成唯一 id 作为 name,然后用 legend.formatter 可以达到你想要的效果哦 

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] Ovilia closed issue #11884: 希望能够支持name相同的两个图例

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #11884: 希望能够支持name相同的两个图例
URL: https://github.com/apache/incubator-echarts/issues/11884
 
 
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org