highchart 点击事件 获取X轴的值

 series: {
                    events: {
                        click: function (event) {
                                //获取条件值
                            var  name = this.xAxis.categories[event.point.x];
                            $("#goodsArea").val(name);
                            console.log("进入了"+this.xAxis.categories[event.point.x]+"数量:"+event.point.x)
                        }
                    }
                }

你可能感兴趣的:(前端)