You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "wangz1999 (via GitHub)" <gi...@apache.org> on 2025/09/10 07:38:51 UTC
[I] [Bug] 6.0.0版本的图表时间轴在series有多个系列时,会出现位置偏移, [echarts]
wangz1999 opened a new issue, #21256:
URL: https://github.com/apache/echarts/issues/21256
### Version
6.0.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=area-time-axis
### Steps to Reproduce
打开编辑器。填入该配置项
option = {
"textStyle": {
"color": "black"
},
"color": [],
"axisPointer": {
"link": {
"xAxisIndex": "all"
}
},
"dataZoom": [
{
"type": "slider",
"xAxisIndex": [
0
],
"start": 0,
"end": 100,
"minSpan": 0,
"maxSpan": 100
},
{
"type": "inside",
"xAxisIndex": [
0
],
"start": 0,
"end": 100,
"minSpan": 0,
"maxSpan": 100
}
],
"title": {
"text": "钢\n筋\n计\n数\n据",
"left": "left",
"top": "middle",
"textStyle": {
"fontSize": 15,
"fontWeight": "600",
"color": "black"
}
},
"tooltip": {
"trigger": "item",
"axisPointer": {
"type": "cross",
"label": {
"backgroundColor": "#6a7985"
}
}
},
"legend": {
"x": "88%",
"y": "center",
"orient": "vertical",
"type": "scroll",
"height": "80%",
"itemGap": 8,
"pageIconSize": 12,
"pageTextStyle": {
"color": "https://github.com/apache/echarts/issues/666"
},
"textStyle": {
"color": "black"
},
"triggerEvent": true,
"tooltip": {
"show": true,
"trigger": "item"
},
"data": [
"EGJJ3-1温度",
"EGJJ1-2温度",
"EGJJ5-2温度",
"EGJJ2-2温度"
]
},
"toolbox": {
"feature": {
"saveAsImage": {
"show": true,
"iconStyle": {
"borderColor": "#409eff"
},
"backgroundColor": "#ffffff"
}
}
},
"grid": {
"left": "3%",
"right": "12%",
"bottom": "5%",
"containLabel": true
},
"xAxis": [
{
"type": "time",
"boundaryGap": false,
"axisLine": {
"onZero": true
},
"slient": false,
"triggerEvent": true,
"axisLabel": {
"rotate": 20,
"margin": 15
},
"data": []
}
],
"yAxis": [
{
"type": "value",
"name": null,
"axisLabel": {
"fontSize": 16
},
"position": "left",
"nameLocation": "end",
"alignTicks": true,
"nameTextStyle": {
"padding": [
-30,
0,
0,
0
],
"fontSize": 15
}
},
{
"type": "value",
"name": "",
"alignTicks": true,
"axisLabel": {
"fontSize": 16
},
"position": "right",
"nameLocation": "end",
"nameTextStyle": {
"padding": [
-30,
0,
0,
0
],
"fontSize": 15
}
}
],
"series": [
{
"name": "EGJJ3-1温度",
"isSectionProgress": false,
"type": "line",
"symbol": "circle",
"symbolSize": 10,
"itemStyle": {
"borderColor": "currentColor",
"borderWidth": 1
},
"lineStyle": {
"smooth": false,
"shadowColor": "white",
"shadowBlur": 10
},
"data": [
[
"2025-06-30 16:02:53",
21.5,
"【人工录入】",
"1916676405056999424",
"EGJJ3-1",
1751270573000
]
]
},
{
"name": "EGJJ1-2温度",
"isSectionProgress": false,
"type": "line",
"symbol": "circle",
"symbolSize": 10,
"itemStyle": {
"borderColor": "currentColor",
"borderWidth": 1
},
"lineStyle": {
"smooth": false,
"shadowColor": "white",
"shadowBlur": 10
},
"data": [
[
"2025-07-01 09:21:40",
21.5,
"【人工录入】",
"1916676404826312704",
"EGJJ1-2",
1751332900000
]
]
},
{
"name": "EGJJ5-2温度",
"isSectionProgress": false,
"type": "line",
"symbol": "circle",
"symbolSize": 10,
"itemStyle": {
"borderColor": "currentColor",
"borderWidth": 1
},
"lineStyle": {
"smooth": false,
"shadowColor": "white",
"shadowBlur": 10
},
"data": [
[
"2025-07-02 10:45:05",
21,
"【人工录入】",
"1916676405434486784",
"EGJJ5-2",
1751424305000
]
]
},
{
"name": "EGJJ2-2温度",
"isSectionProgress": false,
"type": "line",
"symbol": "circle",
"symbolSize": 10,
"itemStyle": {
"borderColor": "currentColor",
"borderWidth": 1
},
"lineStyle": {
"smooth": false,
"shadowColor": "white",
"shadowBlur": 10
},
"data": [
[
"2025-07-22 13:52:25",
25,
"【人工录入】",
"1916676404981501952",
"EGJJ2-2",
1753163545000
]
]
}
]
}
### Current Behavior
datazoom偏移了原本位置
### Expected Behavior
datazoom不应该发生偏移
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 6.0.0版本的图表时间轴在series有多个系列时,会出现位置偏移, [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21256:
URL: https://github.com/apache/echarts/issues/21256#issuecomment-3276858716
bug confirmed, _dataZoom_ position is very wrong when series have just one data point - [Demo](https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsAmBDMWBawwAtgFzJrqxgCeIApmQOQDOANhBnQE6MA0F6AEbAwYYmQAMFAL790Y4K0ggyqSlS4QA5lu5MIYOkT4DYWAB4RmABWARohrqtPzaDWIwDGXYM2Yn1dFYsQTpWZ0DKQSxPAGstHwBXaAwAYUVgJw8AYgA2LAB2AE4ADgBWRhdYaVMa9FkKcwBBS2ZVKjcmSCI6Rmq5WGoWq3aaeiYANyxWRN7-imZuCDo22ABtUzVA6CwepgBRAHEAKWOAZgBaAEZASjtAMr0AwKsAZTpPSBhrHwSV1YAzaaLAbqMbuRjsaC9YGUZjUIjCcIeTwQLieVhQqqw-GKZ4QABe7iuEmh6AMRmeNHREUisGEXE4XHSrEyTE8iS4XDoDiZmUekTpDIA6hwwAALMhXKoNSLYXBkDY09ZVdSMABMElVZQuElyFzOElgV1yJA1JDKZz5NNVVwAdGUSYFGIAEBkAXXKAU91AKr6gFNFQCIDJbIowrkUjbkCrkACwSMpR3JFOPh1Xh_2Oo6nS5XZPqK4FMpXVUFKMFfUSKSKgC6ytgAHoq2YMBh7FoqKKrLBFp4YBhMDgsLAQHYHLAAO4QVisWB_CDmbu4AjEPu-AxQaCVqsAKkVCsVHnVmu1BQuqtVhrOZtVJE1mcomodKtdnt9V_QgeDuVDEYk4dKV2jQbKqqfDxU2OVVD0A7NzSNM4ynDaMS0rMtYDXKsqgrdQ6lgCtpAAbiAA)
Added to the list in #20392
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 6.0.0版本的图表时间轴在series有多个系列时,会出现位置偏移, [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #21256:
URL: https://github.com/apache/echarts/issues/21256#issuecomment-3273720002
@wangz1999 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] The chart timeline in version 6.0.0 will have a position shift when there are multiple series in the series.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 6.0.0版本的图表时间轴在series有多个系列时,会出现位置偏移, [echarts]
Posted by "j3ski-bioraptor (via GitHub)" <gi...@apache.org>.
j3ski-bioraptor commented on issue #21256:
URL: https://github.com/apache/echarts/issues/21256#issuecomment-4206024714
Adding it here, since this issue is still open - the same issue happens when there are multiple data points, but the series type is not line (scatter in my case). Removing the shadow fixes it (`showDataShadow`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org