Title and Chartnames To Be Selectable with mouse .Would You Please Add this opprtunity?
I can't select the title and the chart categories . In some situations I need to select and copy those strings . Would You Please Add this opportunity ASAP?
![](https://secure.gravatar.com/avatar/fa647351a5f8cb13246ded7fec949af4?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Hi, this feature is prevented in two places, because there were problems with text being selected when trying to zoom in. See https://github.com/highcharts/highcharts/issues/3224.
If you want to enable text selection, there are two lines where the event handling is prevented. If you comment out both these lines, your users can select text:
- https://github.com/highcharts/highcharts/blob/v5.0.14/js/parts/Pointer.js#L756
- https://github.com/highcharts/highcharts/blob/v5.0.14/js/parts/Pointer.js#L813
-
Anonymous commented
Cause I installed highcharts in npm, so I fork the highcharts project in https://github.com/highcharts/highcharts, and comment there code according your link, and I rename it as 'enable-highcharts-select'. then I publish it to npm so I can use command [ npm install enable-highcharts-select --save ] to install the package, but I import from 'enable-highcharts-select' can not get the modules, so is there anything wrong?
-
It works for me. I've updated the links in the status with the correct locations in v5.0.14.
-
Anonymous commented
why I comment out these lines in hoghcharts 5.0.10,but the text of title still can not be selected and copied?