我正在尝试绘制此图表,在这里,在代码笔中
代码笔代码
它有效,
但是在我的网站上,我在控制台中出现此错误。
axis.min 不能大于 axis.max 顶点图表:6 值((
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
并尝试在预设置中查找。