apache / apache/echarts

[Feature] echarts多个柱状图如何只显示单个markLine

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

Description

### What problem does this feature solve?

line线图,业务需求上需要配置最大值和最小值,然后再echarts上绘制,通过官方文档最合适的是line的markLine配置,现在遇到如下问题:

1. 因为是多个线图,如果markLine只设置在series第一项中,因为存在legend,这时关闭掉了第一个line,则不显示markLine
2. 如果series每项都绘制,则会出现性能上浪费,并且会重叠markLine

当然我知道此设计是合理的,但是我认为这个业务需求也是合理的,echarts方面可有此处的替代方案呢?

### What does the proposed API look like?

希望一个全局生效的markLine,可以像title,tooltip那样的配置

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.