jquery - 如何向 highcharts 中的 x 轴标签添加工具提示?

标签 jquery highcharts tooltip label axis-labels

如何向 highcharts 中的 x 轴标签添加工具提示?

xAxis: {
  categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'],
  labels: {
    x: 5,
    useHTML: true,
    formatter: function () {
      return categoryImgs[this.value];
    }
  }
}

目前,工具提示仅显示在图表中的点上,我希望用户将鼠标悬停在 x 轴上的标签上时也能看到工具提示/自定义描述。那可能吗?谢谢

最佳答案

一般来说,Highcharts 不支持标签上的工具提示。

但是你有两个解决方案:

关于jquery - 如何向 highcharts 中的 x 轴标签添加工具提示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21871741/

相关文章:

javascript - jQuery:html() 在事件中不可用?

javascript - Highcharts饼图切片动画仅在抛出错误时起作用

javascript - 图像映射中的纯 CSS 数据工具提示(jquery?)

jquery - 带关闭按钮的工具提示

javascript - 关闭主体点击事件上的工具提示 - 无法正常工作

javascript - 连接功能的多个元素

javascript - 如何确定 jquery ajax 调用何时完成?

javascript - 如何使用 jQuery 为 HTML5 视频播放器制作动画以响应触发事件?

javascript - 将条形子弹图转换为柱形图

javascript - 检索 highcharts 中的 JSON 数据