Settings and activity
1 result found
-
34 votes
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#L813An error occurred while saving the comment An error occurred while saving the comment Anonymous commentedwhy I comment out these lines in hoghcharts 5.0.10,but the text of title still can not be selected and copied?
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?