Skip to content

Selected points or click callback #13

Description

@mm-spiio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions