我想绘制这张图,在这里,在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();
请你帮我找找原因好吗?
谢谢你的帮助
在图表的设置中,看一下空间里的内容。
Window.apex Objetc
并尝试在一个预设里面找到。