Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Graph Line Distortion When Zooming: Unexpected Connections Between Remaining Points #20572

Open
treisebast opened this issue Dec 10, 2024 · 2 comments
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@treisebast
Copy link

Version

5.5.1

Link to Minimal Reproduction

Steps to Reproduce

option = {
xAxis: {
type: 'category',
boundaryGap: false
},
yAxis: {
type: 'value',
boundaryGap: [0, '30%']
},
dataZoom: [
{
type: 'inside'
},
{
type: 'slider',
showDataShadow: false,
handleIcon:
'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
handleSize: '80%'
},
{
type: 'inside',
orient: 'vertical'
},
{
type: 'slider',
orient: 'vertical',
showDataShadow: false,
handleIcon:
'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
handleSize: '80%'
}
],
visualMap: {
type: 'piecewise',
show: false,
dimension: 0,
seriesIndex: 0,
pieces: [
{
gt: 1,
lt: 3,
color: 'rgba(0, 0, 180, 0.4)'
},
{
gt: 5,
lt: 7,
color: 'rgba(0, 0, 180, 0.4)'
}
]
},
series: [
{
type: 'line',
smooth: 0.6,
symbol: 'none',
lineStyle: {
color: '#5470C6',
width: 5
},
markLine: {
symbol: ['none', 'none'],
label: { show: false },
data: [{ xAxis: 1 }, { xAxis: 3 }, { xAxis: 5 }, { xAxis: 7 }]
},
areaStyle: {},
data: [
['2019-10-10', 200],
['2019-10-11', 560],
['2019-10-12', 750],
['2019-10-13', 580],
['2019-10-14', 250],
['2019-10-15', 300],
['2019-10-16', 450],
['2019-10-17', 300],
['2019-10-18', 100]
]
}
]
};

Current Behavior

This is what the chat looks like after initialization:
grafik

When zooming into the chart, the curve of the chart changes in a way that it no longer displays the desired shape or behavior:
grafik

Expected Behavior

The actual curve of the graph should remain approximately the same:
grafik

When zooming into the chart and some points end up outside the visible area, the remaining points are automatically reconnected, creating new connections. This, however, alters the curve of the graph. My expectation is that the graph's line should exit the chart at the x-axis (zero line) and re-enter later without changing the original curve.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@treisebast treisebast added the bug label Dec 10, 2024
@echarts-bot echarts-bot bot added the missing-title This issue is missing a descriptive title. label Dec 10, 2024
@echarts-bot echarts-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024

This comment has been minimized.

@treisebast treisebast changed the title [Bug] [Bug] Graph Line Distortion When Zooming: Unexpected Connections Between Remaining Points Dec 10, 2024
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Dec 10, 2024
@echarts-bot echarts-bot bot reopened this Dec 10, 2024
@echarts-bot echarts-bot bot changed the title [Bug] Graph Line Distortion When Zooming: Unexpected Connections Between Remaining Points [Bug] Graph Line Distortion When Zooming: Unexpected Connections Between Remaining Points Dec 10, 2024
@echarts-bot echarts-bot bot removed the missing-title This issue is missing a descriptive title. label Dec 10, 2024
@helgasoft
Copy link

helgasoft commented Dec 11, 2024

confirmed - Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants