apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.47k stars 19.62k forks source link

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

Open NickMitrokhin opened 11 months ago

NickMitrokhin commented 11 months ago

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.

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

MatthiasMert commented 11 months ago

there seems to be some calculation error as this only occurs with an odd line width.

helgasoft commented 11 months ago

duplicate of #19177 Use bigger 'y' values, like y:1000 instead of y:100

NickMitrokhin commented 11 months ago

duplicate of #19177 Use bigger 'y' values, like y:1000 instead of y:100

This workaround will help us to resolve the issue. Thanks.