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 2020/11/10 04:41:53 UTC

[GitHub] [incubator-echarts] lesovsky opened a new issue #13585: Allow to select and copy text of legend items.

lesovsky opened a new issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585


   ### What problem does this feature solve?
   Currently it's impossible to select text of legend items and copy it into buffer (and then paste somewhere).
   
   ### What does the proposed API look like?
   Legend component could be extended with extra property, like 'selectable' with values 'true', 'false'. Such property switches ability of the legend items to be selectable.
   
   <!-- 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] [incubator-echarts] plainheart commented on issue #13585: Allow to select and copy text of legend items.

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585#issuecomment-724482012


   Maybe you can use a third-party library like [clipboardjs](https://clipboardjs.com/), in the callback of `legendselected` event, set the text into system clipboard manually by its API.


----------------------------------------------------------------
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] [incubator-echarts] lesovsky closed issue #13585: Allow to select and copy text of legend items.

Posted by GitBox <gi...@apache.org>.
lesovsky closed issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585


   


----------------------------------------------------------------
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] [incubator-echarts] lesovsky commented on issue #13585: Allow to select and copy text of legend items.

Posted by GitBox <gi...@apache.org>.
lesovsky commented on issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585#issuecomment-724477548


   Is it possible to achieve this without SVG but using events (like 'legendselected') ?


----------------------------------------------------------------
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] [incubator-echarts] plainheart commented on issue #13585: Allow to select and copy text of legend items.

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585#issuecomment-724475529


   Unless we provide an HTML renderer for `legend` component,  we can only use SVG renderer and set the SVG container's style by CSS `user-select: auto` to enable text selection. In canvas, it may be quite complicated and not very practical.
   
   Here is a demo for SVG renderer https://codepen.io/plainheart/pen/abZRgRM


----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #13585: Allow to select and copy text of legend items.

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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] [incubator-echarts] lesovsky commented on issue #13585: Allow to select and copy text of legend items.

Posted by GitBox <gi...@apache.org>.
lesovsky commented on issue #13585:
URL: https://github.com/apache/incubator-echarts/issues/13585#issuecomment-724628571


   Thanks for help, will try to make something )))


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