antvis / antvis/F2

怎样修改对比折线图的 tooltipmaker 默认样式, 两条线怎么改

Open
#1,134 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/50546350/108499420-36f67500-72e9-11eb-949d-26a9dff345fa.png)

如上图: 两条线的辅助线交点是空心的, 我想把两条线改成实心且与线颜色相同, 怎么实现, 设置 tooltipMarkerStyle 的话两条线的交点都会是同一个颜色
`
tooltipMarkerStyle: {
fill: '#FF7F4E',
stroke: '#fff'
},
`
这样改完后会显示如图:

![image](https://user-images.githubusercontent.com/50546350/108499738-bb48f800-72e9-11eb-8e7a-96530cddd768.png)

求解决方法

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two-line tooltip shown in the issue and inspect how tooltipMarkerStyle is applied. The work is complete when both tooltip markers are solid and each marker uses the color of its corresponding line.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.