apache / echarts

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

Add arrow (or other symbols) at the middle of the lines #9477

Closed mzy2240 closed 3 years ago

mzy2240 commented 5 years ago

General Questions

PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)! Otherwise, the issue will not be answered. And think before you tick. :) 请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

{DESCRIBE_HERE} Add arrow (or other symbols) at the middle of the lines

Expected Behavior

{DESCRIBE_HERE} Add arrow (or other symbols) at the middle of the lines

Current Behavior

{DESCRIBE_HERE} Now symbols can only be added at the end or both end of the lines.

Online Example

THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!

{ADD_LINK_OF_DEMO_HERE}

{PASTE_RELATED_CODE_HERE}

Topics

Anything Else We Need to Know

{DESCRIBE_HERE}

Environment

cuijian-dexter commented 5 years ago

@mzy2240 http://www.echartsjs.com/option.html#series-lines.label.position label.position set middle,

mzy2240 commented 5 years ago

Wow thanks man. However, I already have other text labels in the middle of the lines, so this may not work for me. Any other ideas? Thanks!

cuijian-dexter commented 5 years ago

@mzy2240 What effect do you want?I think you can add arrows through label.rich.

mzy2240 commented 5 years ago

image For example, I want the arrow in the middle of the lines, while the labels will be above the lines.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!