列类别名称上的HighCharts事件单击 [英] HighCharts event on column category name click

查看:107
本文介绍了列类别名称上的HighCharts事件单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户单击柱形图的类别名称,我希望触发一个事件.我看到用户是否可以选择单击栏本身 ,但是栏的类别名称又如何呢?

I'd like an event to fire if a user clicks the category name of a column chart. I see there are options for if the user clicks the bar itself, but what about the category name of the bar?

推荐答案

使用此:

$("#container .highcharts-axis-labels:first text").click(function() {
        alert($(this).text());
    });

fiddle 此处

这篇关于列类别名称上的HighCharts事件单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆