简体   繁体   English

高图:单击列获取类别名称

[英]Highcharts: get category name on column click

I am a highcharts rookie and it seems like a very simple problem, but I am unable to get x axis category when I click on a column in a very simple column chart. 我是一个高图表的新手,这似乎是一个非常简单的问题,但是当我在非常简单的柱形图中单击某个列时,我无法获得x轴类别

What I tried without success: 我尝试不成功的方法:

  • this , this
  • x , this.x , xthis.x
  • Having a look at the chart object (within my browser with developer tools) itself to see if there would be anything useful in its structure itself, but I don't seem to find what I need. 查看一下图表对象(在具有开发人员工具的浏览器中)本身,以查看其结构本身是否有用,但是我似乎找不到所需的东西。

Here is a fiddle for you to play with: http://jsfiddle.net/9xskkkpx/ 这是您可以玩的小提琴: http : //jsfiddle.net/9xskkkpx/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM