问题
How to add event for highcharts bubble?
I have code https://jsfiddle.net/stachu/p4j5mng5/27/
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function (event) {
$('#report').html(event.s);
}
}
},
},
bubble: {
cursor: 'pointer',
minSize:2,
maxSize:42,
},
},
Code from plotOptions sections not working. Any idea to display s data from report div?
回答1:
It is a bug which appeared in 5.0.1 version. Use 5.0.0 version or the latest development version from github.
<script src="https://code.highcharts.com/5.0.0/highcharts.js"></script>
<script src="https://code.highcharts.com/5.0.0/highcharts-more.js"></script>
https://jsfiddle.net/p4j5mng5/29/
来源:https://stackoverflow.com/questions/40549961/how-to-add-bubble-event-in-bubble-higharts