Question

how to use double click get the Category, name, y of a line of a line chart?

i tries use customEvents plugin. but i don't know get those data in line chart in the column chart, i use below code is okay.

series: [{
    name: 'John',
    data: [5, 3, 4, 7, 2],
    point: {
        events: {
            dblclick: function(e) {
                var c = this.point.category;
                var y = this.point.options.y;
                var n = this.point.series.name;
            }
        }
    }
}
Was it helpful?

Solution

I updated the plugin, so please check if all works as you expect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top