f2 中 adjust 好像不支持 dodgeBy 的功能,这个功能能支持下吗, G2中好像有这个功能
- 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

F2

-
Contributor 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