Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected points or click callback #13

Open
mm-spiio opened this issue May 19, 2020 · 0 comments
Open

Selected points or click callback #13

mm-spiio opened this issue May 19, 2020 · 0 comments

Comments

@mm-spiio
Copy link

mm-spiio commented May 19, 2020

Is there a way to get the Selected points on the chart (https://www.highcharts.com/docs/chart-concepts/series)

plotOptions: {
    series: {
        allowPointSelect: true
    }
}

var selectedPoints = chart.getSelectedPoints();

or with the event click in the series

series: {
                allowPointSelect: true,
                label: {
                    connectorAllowed: true
                },
                marker: {
                    enabled: true,
                    lineWidth: 1,
                    radius: 4,
                },
                point: {
                    events: {
                        click: function (e) {
                            console.log(e);
                        },
                    }
                },

            }

I would like to be able to click on a point on a linechart (sort of like with tooltip which works) and use that point to make an annotation somewhere in my program.

Any ideas? In general just would like the ability of any callback event really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant