-
Notifications
You must be signed in to change notification settings - Fork 19.8k
当x轴为时间轴时X轴配置项interval设置无效[Bug] #16927
Copy link
Copy link
Closed as not planned
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.waiting-for: community
Description
Version
5.2.2
Link to Minimal Reproduction
No response
Steps to Reproduce
let data = [
[
1650511428000,
22
],
[
1650511438000,
22
],
[
1650511458000,
22
]
]
option = {
"tooltip": {
"trigger": "axis",
"axisPointer": {
"type": "cross"
}
},
"xAxis": {
"type": "time",
"name": "时间",
"interval": 3600000,//60分钟
"min": 1650506400000,
"max": 1650513600000,
"axisLabel": {}
},
"grid": {
"top": 40,
"left": 60,
"right": 40,
"bottom": 40
},
"yAxis": {
"type": "value",
"name": "温度℃",
"min": 0,
"interval": 33,
"axisLabel": {
"show": true
},
"max": 528
},
"series": [
{
"name": "温度",
"data":data ,
"type": "line",
"smooth": true,
"showSymbol": false
}
]
};
Current Behavior
当x轴type为time时interval配置项无效,无法自定义设置x轴间隔

Expected Behavior
当x轴type为time时,设置interval为3600000时X轴间隔应该为1小时,而不应该是其他大小间隔
Environment
- OS:windown 10
- Browser:Chrome 100.0.4896.88
- Framework: Vue@2Any additional comments?
当我将echart版本退回到4.9.0时能正常应用
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.waiting-for: community