Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
188
rated 0 times [  193] [ 5]  / answers: 1 / hits: 45753  / 12 Years ago, wed, may 16, 2012, 12:00:00

I have horizontal bar chart with Highcharts. How can I make each bar clickable for an event, for example like 'alert' ?



I have this series for example:



series : [{
name: 'John',
data: [5, 3, 4, 7, 2]
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'Joe',
data: [3, 4, 4, 2, 5]
}];


What more should I do?


More From » jquery

 Answers
191

You might find the Highcharts Options Reference a good starting point.



From the reference, here's an example of a column chart
where clicking a column fires an alert.



http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-point-events-click-column/


[#85556] Monday, May 14, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terrellhunterm

Total Points: 82
Total Questions: 109
Total Answers: 98

Location: Vietnam
Member since Sun, Oct 18, 2020
4 Years ago
;