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