制作股票分时图时,11:30 - 13:00 这段时间是没有交易的,请问这段时间的x轴如何截断?
配置项如下
option = {
"title": {
"left": 0,
"text": ""
},
"tooltip": {
"trigger": "axis",
"axisPointer": {
"type": "cross",
"triggerOn": "none",
"crossStyle": {
"color": "#3285ea",
"type": "solid"
},
"snap": true
}
},
"axisPointer": {
"show": true,
"type": "line",
"triggerOn": "mousemove",
"lineStyle": {
"color": "#3285ea"
},
"snap": true
},
"grid": [{
"left": "2%",
"right": "7%"
}],
"xAxis": {
"type": "time",
"left": 0,
"min": 1542936300000,
"max": 1542956400000,
"splitNumber": 1,
"boundaryGap": false,
"data": ["09:29:00", "09:30:00", "09:31:00", "09:32:00", "09:33:00", "09:34:00", "09:35:00", "09:36:00", "09:37:00", "09:38:00", "09:39:00", "09:40:00", "09:41:00", "09:42:00", "09:43:00", "09:44:00", "09:45:00", "09:46:00", "09:47:00", "09:48:00", "09:49:00", "09:50:00", "09:51:00", "09:52:00", "09:53:00", "09:54:00", "09:55:00", "09:56:00", "09:57:00", "09:58:00", "09:59:00", "10:00:00", "10:01:00", "10:02:00", "10:03:00", "10:04:00", "10:05:00", "10:06:00", "10:07:00", "10:08:00", "10:09:00", "10:10:00", "10:11:00", "10:12:00"],
"axisPointer": {
"label": {}
},
"axisLabel": {
"textStyle": {
"fontSize": 20,
"color": "#3E454D"
}
}
},
"yAxis": {
"position": "right",
"name": "分时",
"axisLabel": {
"textStyle": {
"fontSize": 20,
"color": "#3E454D"
}
},
"splitLine": {
"lineStyle": {
"color": "#1a1e24",
"width": 2
}
},
"splitNumber": 3,
"type": "value",
"boundaryGap": [0, "100%"],
"min": "4430.8",
"max": "4516.0"
},
"series": [{
"name": "分时",
"type": "line",
"smooth": true,
"symbol": "none",
"sampling": "average",
"itemStyle": {
"normal": {
"color": "#84b3ff"
}
},
"areaStyle": {
"normal": {
"color": {
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"type": "linear",
"global": false,
"colorStops": [{
"offset": 0,
"color": "#2b3c59",
"opacity": 0.2
}, {
"offset": 1,
"color": "#2b3c59",
"opacity": 0.2
}]
}
}
},
"data": [
[1542936540000, "4514.0"],
[1542936600000, "4510.8"],
[1542936660000, "4516.0"],
[1542936720000, "4509.0"],
[1542936780000, "4491.4"],
[1542936840000, "4494.4"],
[1542936900000, "4493.8"],
[1542936960000, "4496.2"],
[1542937020000, "4491.0"],
[1542937080000, "4483.8"],
[1542937140000, "4479.0"],
[1542937200000, "4489.6"],
[1542937260000, "4490.8"],
[1542937320000, "4484.6"],
[1542937380000, "4485.2"],
[1542937440000, "4477.6"],
[1542937500000, "4476.4"],
[1542937560000, "4480.8"],
[1542937620000, "4479.2"],
[1542937680000, "4479.0"],
[1542937740000, "4470.6"],
[1542937800000, "4467.2"],
[1542937860000, "4469.2"],
[1542937920000, "4467.2"],
[1542937980000, "4469.4"],
[1542938040000, "4466.8"],
[1542938100000, "4464.0"],
[1542938160000, "4463.2"],
[1542938220000, "4451.0"],
[1542938280000, "4446.6"],
[1542938340000, "4448.2"],
[1542938400000, "4442.6"],
[1542938460000, "4443.0"],
[1542938520000, "4446.0"],
[1542938580000, "4446.6"],
[1542938640000, "4441.4"],
[1542938700000, "4444.2"],
[1542938760000, "4438.2"],
[1542938820000, "4444.2"],
[1542938880000, "4438.4"],
[1542938940000, "4435.4"],
[1542939000000, "4430.8"],
[1542939060000, "4437.6"],
[1542939120000, "4438.6"]
]
}]
}