antvis / antvis/F2

f2 中 adjust 好像不支持 dodgeBy 的功能,这个功能能支持下吗, G2中好像有这个功能

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

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
分组柱状图中,颜色是可以根据用户进行配置的,如果用户以X轴为颜色划分。 如果不设置 dodgeBy 展示会很奇怪

### What does the proposed API look like?
chart
.interval()
.adjust({ type: 'dodge', marginRatio: 1 / 16, dodgeBy: 'tag' })
**
.shape('text')

G2
![image](https://user-images.githubusercontent.com/18325063/97402974-8249d980-192e-11eb-8b3b-1cb79745a9cc.png)
F2
![image](https://user-images.githubusercontent.com/18325063/97403018-9b528a80-192e-11eb-820c-605261c67620.png)

-

Contributor guide

Open the contributing guide

Research direction

Start at the chart.interval().adjust({ type: 'dodge', marginRatio: 1 / 16, dodgeBy: 'tag' }) entry point and compare the requested behavior with the G2 example shown in the issue. Done means grouped intervals support dodgeBy and produce the intended color-based grouping without the described visual distortion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.