【问题标题】:Higcharts: How to remove the tooltip on the xAxis?Highcharts:如何删除 x 轴上的工具提示?
【发布时间】:2021-12-09 12:02:21
【问题描述】:

我有this jsfiddle example,我需要隐藏 xAxis 上显示的工具提示。我想保留显示在中间的那个。

以下是部分相关设置:

    series: [{
        name: 'AAPL Stock Price',
        data: data.slice(80, 110),
        type: 'area',
        threshold: null,
        tooltip: {
            valueDecimals: 2
        },
    }],        
    yAxis: {        
        labels: {
            align: 'right',
            x: 0,
            y: -5
        },
        opposite: false,
    },

这是我要删除的:

【问题讨论】:

    标签: highcharts


    【解决方案1】:

    tooltip.split 设置为 false 应该可以解决问题。

    演示:https://jsfiddle.net/BlackLabel/Le8w0r63/

    API:https://api.highcharts.com/highstock/tooltip.split

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-20
      • 2014-03-19
      • 1970-01-01
      • 1970-01-01
      • 2022-01-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多