Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G2的图表,日期数据从闰年29号开始(第一条数据),存在数据处理bug #2115

Closed
junxtx opened this issue Mar 3, 2020 · 7 comments
Assignees
Labels

Comments

@junxtx
Copy link

junxtx commented Mar 3, 2020

image
数据源第一条数据为闰年2月29号时,导致数据判定无效,整个图表渲染失败,引起页面雪崩

本人项目中使用3.x
去官方4.x测试同样存在这个问题

@simaQ simaQ self-assigned this Mar 3, 2020
@junxtx
Copy link
Author

junxtx commented Mar 3, 2020

补充个测试数据

[{
    "date": "20200229",
   "count": 2
      },{
      "date": "20200301",
       "count": 2
      }, {
     "date": "20200302",
     "count": 2
}]

@simaQ
Copy link
Contributor

simaQ commented Mar 4, 2020

使用 'YYYY-MM-DD' 时间格式吧

@junxtx
Copy link
Author

junxtx commented Mar 4, 2020

使用 'YYYY-MM-DD' 时间格式吧

意思是不支持YYYYMMDD的时间格式了

@simaQ
Copy link
Contributor

simaQ commented Mar 5, 2020

使用 'YYYY-MM-DD' 时间格式吧

意思是不支持YYYYMMDD的时间格式了

支持,但是你可以现在项目上暂时用这个方案解决。

@simaQ
Copy link
Contributor

simaQ commented Mar 5, 2020

antvis/scale#37

@simaQ simaQ assigned dxq613 and unassigned simaQ Mar 5, 2020
@simaQ simaQ added the Bug label Mar 5, 2020
@skywi
Copy link

skywi commented Mar 6, 2020

I am adding a space before the date to fix this temporarily;
Eg. '20200229' -> ' 20200229'
Hope to fix this bug soon!

@Leannechn
Copy link
Member

已发布 @3.5.13 #2127

dxq613 added a commit that referenced this issue Mar 11, 2020
fix(scale): 修复日期正则表达式将 '20200229' 判断为 time 类型的问题, related #2115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants