score:7
Accepted answer
plotoptions={{
series: {
cursor: 'pointer',
point: {
events: {
click: (e) => { console.log(this); console.log(e.point.category); console.log(e.point.y); }
}
}
}
}}
now this
contains the current state of the page, and i can access the information from the column from e.point
score:0
have you tried this ?
click: function(e) {
console.log(
e.yaxis[0].value, e.xaxis[0].value
)
}
you may find more infos following this link :
score:0
in plotoption click event is like this
js bin demo
plotoptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function () {
console.log('x: ' + this.x + ', y: ' + this.y);
//call function passing this values as arguments
}
}
}
}
},
Source: stackoverflow.com
Related Query
- React plot options onclick event
- How to prevent a React onClick event from being consumed by child
- Dispatch event `click` on plot options of pie highchart generate a redraw of chart.
- ReactErrorUtils.invokeGuardedCallback in React fires event repeatedly in IE browser
- programatically fire a click event for a point on highchart scatter plot
- Access props and state of current component in React JS within an event handler
- Add onclick event on chart made with the highcharts library
- How to hide Axes Crosshairs by onclick event in Highcharts
- HighChart : plot line click event for multiple chart
- How to use HighCharts to plot aggregate hourly event rates?
- Preventing event from executing consecutive times React
- Plot options don't work in Variable Radius Pie chart
- How can I pass values from Highcharts event callbacks (click, mouseOver, mouseOut) back to React component member function?
- Highcharts + set event click from options in jquery
- onclick event when part of highcharts funnel is clicked
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- Highcharts add an image to that chart with an onClick event attached to it
- how to add onclick event handler inside highcharts tooltip
- Highcharts: How to change colors of all areas except hovered one on MouseOver event in area plot
- Highcharts - Selection Event Modify Options
- react-highcharts Y-axis categories catch event click in react way
- Strange character in the Highstock source code
- HighCharts Stacked Column Adding Onclick Event to the chart
- Highcharts - Click event not firing outside of plot area
- Old state is being shown despite updating in React Highcharts click event
- Formatting plot options for pie charts
- render a circle onclick event in highcharts
- React highcharts unable to call function from data label onclick
- Change chart property with onClick event
- How to access React hook state in Highcharts event listener
More Query from same tag
- Need to have a clear all button in for legend items in Highchart react
- angular 4 Highcharts set yAxis Categories
- Random number on Highcharts + AngularJS
- add a point on mouse click event on highcharts
- cursor:pointer on Highcharts Plotband or clickable Plotband Lable
- In highstock 1.3.0, when zooming in full, the graph draws all messed up
- Using JSON data in Highcharts
- Draw charts with a Loop using HighCharts in symfony
- How to make highchart clickable?
- HighCharts: set specific border width and border color dynamically for one column
- Retrieving JSON data in highcharts
- Show value of last point as label or tooltip on Highcharts Stock Chart
- Display legend items in two columns highcharts
- Dynamic Labels for X axis in HighCharts
- Highcharts too slow when plotting 4000 bars (rCharts)
- Export Highcharts data in excel with values as a string
- Accessing a Highmaps node from outside the map
- Remove the blue color selection while dragging the mouse to select in highcharts
- Is it possible to populate grouped categories dynamically in the grouped-categories plugin using an array?
- Highcharts with data from sql database
- Highstock make navigator handles move a fixed distance relative to eachother
- How to display data coming from the controller as collection in a ViewData dynamically Highcharts
- How to visible tool tip in highcharts while page load
- How do you position the x-axis labels along the line y=0 using Highcharts?
- Highcharts - nested sliced donut charts
- Hiding axis labels in non-aggregate columns during drillown
- Highcharts Get legend "icon" in tooltip
- Sankey: Display label outside of sankey and provide drag & drop functionality
- Angular HighCharts Show All Elements even there are big differance between amounts
- thousands Operator in highcharts