Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
与xrange组合时的highcharts奇怪区域偏移错误_Highcharts_React Highcharts - Fatal编程技术网

与xrange组合时的highcharts奇怪区域偏移错误

与xrange组合时的highcharts奇怪区域偏移错误,highcharts,react-highcharts,Highcharts,React Highcharts,我有一个组合的xrange和area图表,无法将area plot放到图表视图的底部 这就是我想要的: 但我得到的是: 任何帮助都将不胜感激 使用xAxis.plotBands代替面积系列类型: xAxis: { type: 'datetime', plotBands: [{ from: 1567079711855, to: 1567077909855, color: '#f9d5d5' }, { from: 1567082015102,

我有一个组合的xrange和area图表,无法将area plot放到图表视图的底部

这就是我想要的: 但我得到的是:

任何帮助都将不胜感激


使用
xAxis.plotBands
代替面积系列类型:

xAxis: {
  type: 'datetime',
  plotBands: [{
    from: 1567079711855,
    to: 1567077909855,
    color: '#f9d5d5'
  }, {
    from: 1567082015102,
    to: 1567079910825,
    color: '#f9d5d5'
  }]
}
演示:

API参考:


也许使用
xAxis.plotBands
更好?检查此示例:。或者这个:哦,看起来很有希望。把这个作为答案,我会接受的。
xAxis: {
  type: 'datetime',
  plotBands: [{
    from: 1567079711855,
    to: 1567077909855,
    color: '#f9d5d5'
  }, {
    from: 1567082015102,
    to: 1567079910825,
    color: '#f9d5d5'
  }]
}