Skip to content

Settings and activity

1 result found

  1. 34 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    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

    An error occurred while saving the comment
    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?

    An error occurred while saving the comment
    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?