score:12
Here is the url of the documentation on how to do this: http://api.highcharts.com/highcharts#plotOptions.series.point.events.click
Here is a good sample: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-point-events-click-url/
The part of your code you want to update is here:
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
},
series: {
point: {
events: {
click: function(){
// do whatever here
}
}
}
}
}
score:0
Uncaught TypeError: Object #<Object> has no method 'slice'
This is the error generated by the following line.
this.slice();
Remove it.
The demo above will trigger click only for the serie which you bind the events, if you want to bind it to all series use @Jamiec suggestion.
Source: stackoverflow.com
Related Query
- How to hyperlink bar graph in highcharts
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How to create a single series bar graph with Highcharts
- How to achieve linear gradient for bar graph in highcharts
- How to create a drilleable bar graph in jsp page using open source charts API
- How do I have text display within the inside of a stacked bar graph in highcharts
- How to create dashed bar graph in highcharts
- how to update bar graph and also its legend without re-drawing it in highcharts
- How to update bar graph in Highcharts without redrawing again
- How do I rotate my HighCharts bar chart so its vertical, not horizontal?
- How to change graph colour above and below plotline in Highcharts
- How do I get the value of a highcharts graph point on mouseover?
- How to pass custom data into Highcharts graph click event
- Highcharts Bar Chart - How to set the minimum bar width/length
- Highcharts stacked bar graph as timeline
- How do I set highcharts line graph point colors to an array of colors?
- How to add a label above each bar in HighCharts
- How to change area graph color above certain value in Highcharts
- Show all labels in highcharts horizontal bar graph
- Highcharts basic bar graphs. How to remove strokewith from the bars
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- How to remove space in between bars in HighCharts bar chart?
- How do I change a specific bar color in Highcharts Bar Chart?
- How To Call A Function To Make A Graph Using HighCharts in PHP
- How can I make a graph with highcharts from csv file?
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- How do I reset Highcharts bar color back to it's original color?
- Dynamically set click event on bar from highcharts graph
More Query from same tag
- Highcharts Waterfall graph using a column graph
- Chart wrong xAxis categories when adding a plotBand on click
- in React $(…).highcharts method "Uncaught TypeError: is not a function"
- Set tickInterval in format HH:mm am/pm of a HIChart's Line chart using Swift 5.0
- Highcharts - Unable to remove xasis titles while drill down
- Highcharts pdf displaying two sets of percentages
- How to stop resetting zoom when switches to other chart type in highcharts
- Highcharts empty when zoomed X
- Stock tools interacting with another chart/component
- Highcharts: xAxis label above bar in horizontal bar charts
- Dock highcharts legend to very bottom of chart
- How does HighCharts Series.update() handle a new tooltip positioner?
- HighCharts dont get value
- How to set Chart Size in Android Using MPAAndroid
- Hiding axis labels in non-aggregate columns during drillown
- stacked bar chart shows hanging zeros when all values are 0 highcharts
- Export Jquery chart to csv,pdf and excel
- How to reduce space of tooltip box in highchart?
- How dragDrop works in Highmaps with mappoint (Highcharts)
- Highcharts not rendering plotbands correctly on first load
- Change chart type with drilldown series
- Highcharts Pie Chart data formatting
- Resizing Highcharts data when creating Graph when over 100
- Extra Labels on Stacked Column After Label Toggle and Resize
- Highcharts - Column Chart: Compare corresponding values to change color
- Highcharts custom styling connect and label
- Highcharts: how do I call an external .js file in the <head> of my highcharts page
- Highcharts (scatter) tooltip notworking
- Highcharts 3D pie with custom colors
- Highcharts Sunburst chart - What is the range of colorVariation.to values?