关于层叠条形图(甘特图)的一个x轴的问题
- 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.
### Reproduction link
[https://codepen.io/jiyihui/pen/JjoYOzW?editors=0010](https://codepen.io/jiyihui/pen/JjoYOzW?editors=0010)
### Steps to reproduce
看上面codepen的现象 有两个问题 1。chart.source设置的ticks 貌似没有生效 2.x轴也没有按照type为timeCat等分间距 3,codepen 中的data数组里面的(year:a)有两段数据,一个间隔2小时10分钟,一个间隔1个小时,但是图上他们的长度看上去是一样的
### What is expected?
timeCat类型 能够去平分24小时(根据设置的ticks或者tickcount), 然后每段数据的时间段显示的长度是能够和x轴的比例对应上的
### What is actually happening?
实际上这个功能没有实现,具体的看上面的重现步骤条目
| Environment | Info |
|---|---|
| f2 | 3.4.4 |
| System | window10 |
| Browser | chrome 76 |
---
点击出现tooltip,onshow的回调函数能否 能看出我点击是哪条数据,而不是返回所有数据
Contributor guide
Research direction
Start with the linked CodePen reproduction and compare the stacked bar chart's timeCat x-axis against the configured ticks or tickCount. Check the reported unequal time-span rendering and the tooltip onShow data; done means the requested axis spacing and row-specific tooltip behavior are reproduced and resolved with verification in the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100