apache / apache/echarts

[Bug] Echart draws a line between two points with an offset

Open
#19,295 3 comments 6 reactions 0 assignees View on GitHub
bug en topic: graph
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

echarts@5.2.0

### Link to Minimal Reproduction

https://stackblitz.com/edit/echarts-xyjq2g?file=index.html

### Steps to Reproduce

Hi,

Please take a look at the [example](https://stackblitz.com/edit/echarts-xyjq2g?file=index.html).

### Current Behavior

The chart draws a line between two points with an offset. The issue is most noticeable near the '2' point, because the line is shifted relative to the arrow.

### Expected Behavior

The line should be drawn directly from the center of the point '1' to the center of the point '2'.

### Environment

_No response_

### Any additional comments?

_No response_

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.