apache / apache/echarts

[Bug] graph vertical edge lines has wrong position

Open
#19,177 5 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.3 ~ 6.0.0

### Link to Minimal Reproduction

https://codepen.io/igincui/pen/LYMMeOE

### Steps to Reproduce

1. How do you create the chart.
Open the codepen link: https://codepen.io/igincui/pen/LYMMeOE

2. What's the chart option

```
option = {
series: [
{
type: 'graph',
roam: true,
symbolSize: [23, 28],
itemStyle: { opacity: 0.5, color: 'green' },
lineStyle: { opacity: 1.0, color: 'red' },
data: [
{
id: 'start',
x: -10,
y: 570,
symbol: 'path://M 0 0 h23 v28 h-23 v-28 z'
},
{
id: 'a',
x: -10,
y: 560,
symbol: 'path://M 0 0 h23 v28 h-23 v-28 z'
},
{
id: 'b',
x: 0,
y: 560,
symbol: 'path://M 0 0 h23 v28 h-23 v-28 z'
},
],
links: [
{
source: 'start',
target: 'a'
},
{
source: 'start',
target: 'b'
},
]
}
]
};
```

3. User interactions before the error happens.
None

### Current Behavior

The vertical lines have wrong positions, do not start from and end to the center of symbols.

![image](https://github.com/apache/echarts/assets/1104492/b9ce2a3c-b578-4a21-8e1d-16dde0472d57)

### Expected Behavior

The vertical lines should have correct positions, start from and end to the center of symbols.

### Environment

```markdown
- OS: Win 10 (64-bit)
- Browser: Chrome Version 117.0.5938.149 ~ 141.0.7390.55 (Official Build) (64-bit)
- Framework: None
```

### Any additional comments?

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.