antvis / antvis/F2

设置横坐标类型格式为timeCat,传入时间的格式不带天,safari浏览器下会不显示,而且使用渐变色就会出现报错

Open
#1,194 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

- [ ] 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://github.com/yusongH/antv-f2-problem-demo](https://github.com/yusongH/antv-f2-problem-demo)

### Steps to reproduce
直接打开demo即可重现,注释掉横坐标的type:'timeCat'就可以了,或者把数据加上天就可以了

| Environment | Info |
|---|---|
| f2 | 3.8.9 |
| System | IOS 14.7 |
| Browser | Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1 |

---
因为业务场景是以‘2020-01’这样的时间格式的

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction demo at https://github.com/yusongH/antv-f2-problem-demo and test the timeCat x-axis with dates such as 2020-01 in Safari on iOS. Compare it with the case where the x-axis type is removed or day information is added. Done means the data is displayed and applying a gradient does not produce an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.