highcharts点击事件系列

http://www.highcharts.com/demo/line-ajax

参考设置(bar 柱状图)

plotOptions: {
                series: {
                    cursor: 'pointer',
                    point: {
                        events: {
                            click: function (e) {
                                  alert(this.series.name);
                                });
                            }
                        }
                    },
                    marker: {
                        lineWidth: 1
                    }
                }
            },

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

原文地址:https://www.cnblogs.com/xtreme/p/4668312.html