How to add bubble event in bubble higharts

醉酒当歌 提交于 2019-12-25 14:11:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!