score:4
Accepted answer
You should be catching the point.event
instead of the chart.event
to get the point's xAxis category:
plotOptions: {
series: {
stacking: 'normal',
dataLabels: {
enabled: true,
align: 'left',
color: '#FFFFFF',
x: 0
},
point: {
events: {
click: function(te) {
console.log(this.category);
console.log(this.x);
}
}
}
},
bar: {}
},
Note the change to console.log(this.category)
to show the xAxis name.
Source: stackoverflow.com
Related Query
- Get X Axis value on bar Highchart click event
- How to get the X axis value from HighChart on android on click event
- Click event on highchart axis
- Fire click event on a highchart column drilldown chart on clicking x axis for drill down reports
- how to get the axis value when I click on a cursor in highstock(high charts)?
- X axis value in stackLabels Formatter in bar highchart
- Highchart on bar item click event
- highchart get each drilldown categories name on click event
- Highchart multiple level drilldown click event get drilldown series data
- How can I get the max value of a y axis at highcharts?
- highmaps get country name on click event
- programatically fire a click event for a point on highchart scatter plot
- max Y Axis value in a Highchart
- adding click event dynamically created highchart
- Click event on bar high charts in angular 2
- How to catch the click event from the axis ticks jqplot, highcharts,flot
- HighChart : plot line click event for multiple chart
- Use a symfony route with parameters in a click event for highchart series
- Dynamically set click event on bar from highcharts graph
- HIghchart Treemap - Add double click event on legend click
- Highchart Axis with only min and max series value
- add event to x-axis labels of bar highchart
- change VueJS component data value from inside Highchart event
- Unable to trigger a click event on series data | Highchart
- Highcharts - How can I get the nearest point on click event
- Call a function from within highchart click event in reactjs
- Setting custom value as label in bar highchart (Rshiny)
- highcharts group series click event to get all data in catagory
- Highchart always show max value for y Axis
- Updating plotOptions bar color on a click event
More Query from same tag
- Highcharts increasing/decreasing data from input
- How to have legends in Pie charts as data labels in HighCharts
- Horizontal line on open and high of candlestick in stockchart
- Loading large amount of data incrementally using ajax
- Customizing y-axis in Highchart.js (stockchart)
- Highcharts Datetime X-Axis invalid date
- MACD + High chart Graph plotting issue
- Highcharts update x-axis categories dynamically
- Highcharts datagrouping issue
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- highcharts round decimals for gauge labels
- How to create data in Json format for highcharts
- Highstock - Comparison chart should be start with 0%
- In Highcharts, for a 3D chart, are we able to set up labels of the z-axis?
- Highcharts Tooltip Show Arrow/Caret when followPointer flag is on
- highcharts refresh CSV data is duplicating not refreshing
- Change range in Highstock dynamically
- Highcharts: there are two columns after exporting XLS(excel),I want to add another column showing percentage
- remove tooltip space between border and content highcharts
- Highcharts data labels not showing on multiple xAxis and yAxis
- How to achieve linear gradient for bar graph in highcharts
- Drilldown on multiple Highcharts with the same data
- Unable to Create Chart in Highcharts and id is undefined
- Get the x axis range on selecting a zoom range in Highcharts
- How to combine 2 series in area chart - Highchart
- What is the problem with my highcharts code?
- Highchart org chart type error with ionic application
- Highcharts.js: Strange rendering of stacked graph
- highstock ie8 error
- Highcharts IE10 support