【问题标题】:Highcharts flag series disappearing when zooming outHighcharts 标志系列在缩小时消失
【发布时间】:2022-12-11 03:23:31
【问题描述】:

当我缩小带有旗帜系列的 Highcharts Highstock 图表时,旗帜消失了。

【问题讨论】:

    标签: typescript highcharts


    【解决方案1】:

    解决方案是在系列配置中添加“allowOverlapX: true”。所以现在我对旗帜系列的配置是:

    const series = {
      type : 'flags',
      id: seriesId,
      data : flagDatas,
      name: label,
      onSeries : ticker,  // Id of which series it should be placed on. If not defined
      // the flag series will be put on the X axis
      shape : 'flag',  // Defines the shape of the flags.
      grouping: false,
      allowOverlapX: true
    };
    

    参考: https://api.highcharts.com/highstock/plotOptions.flags.allowOverlapX

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多