【问题标题】:How to fix the tooltip's position when scroll the X-axis of charts in the Highcharts滚动Highcharts中图表的X轴时如何修复工具提示的位置
【发布时间】:2020-05-18 13:35:06
【问题描述】:

我有一个折线图,可以自定义工具提示并使用 Highcharts 库放置 x 轴滚动条 它运行良好,但是,一旦我移动滚动条,工具提示的位置就不会滚动。 工具提示和滚动条的源代码如下:

var tooltip = {
     headerFormat: '<span style="font-size: 14px; color: {point.color}">{series.name}</span><span 
                           style="font-size: 20px; color: {point.color}">({point.y})</span><br/>',
     pointFormatter: function (point) {
         return tooltipValue[this.x];

     },
    footerFormat: "",
 }
Highcharts.chart('container', {
    chart: {
        type: 'spline',
        scrollablePlotArea: {
            minWidth: 1000,
        },
    }
    });

有人可以帮我吗?

【问题讨论】:

    标签: javascript jquery svg highcharts


    【解决方案1】:

    这是一个已经在 Highcharts 问题频道上报告的错误。见:

    https://github.com/highcharts/highcharts/issues/12682

    如果您需要解决方法,请在上述链接下方的评论中询问核心开发人员。

    【讨论】:

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