RangeBar with ApexChart error: axis.min cannot be greater than axis.max apexchart:6 value()

问题描述 投票:0回答:1

我想绘制这张图,在这里,在codepen中。

代码笔代码

它的工作原理。

但在我的网站上,我在控制台得到了这个错误。

axis.min不能大于 axis.max apexchart:6 value()


var options = {
          series: [
          {
            name: 'Dan',
            data: [
              {
                x: 'Hands',
                y: [ new Date('2020-05-12T10:29:35.558Z').getTime(), new Date('2020-05-12T11:05:30.542Z').getTime()]
              },
              {
                x: 'Hands',
                y: [ new Date('2020-05-12T11:09:35.558Z').getTime(), new Date('2020-05-12T11:31:30.542Z').getTime()]
              },
            ]
          }
        ],
          chart: {
          height: 450,
          type: 'rangeBar'
        },
        plotOptions: {
          bar: {
            horizontal: true,
            barHeight: '80%'
          }
        },
        xaxis: {
          type: 'datetime'
        },
        stroke: {
          width: 1
        },
        fill: {
          type: 'solid',
          opacity: 0.6
        },
        legend: {
          position: 'top',
          horizontalAlign: 'left'
        }
        };

        var chart = new ApexCharts(document.querySelector("#chart"), options);
        chart.render();

图片浏览

请你帮我找找原因好吗?

谢谢你的帮助

codepen apexcharts
1个回答
0
投票

在图表的设置中,看一下空间里的内容。

Window.apex Objetc

并尝试在一个预设里面找到。

© www.soinside.com 2019 - 2024. All rights reserved.