We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#antv上的图例地址 https://antv-g2.gitee.io/zh/examples/interaction/brush#brush-ds-state
#问题描述 antv G2中的框选日期格式只支持 英文日期 ,不支持中文日期格式(例如:"2022-01-01")。当数据传入中文日期格式操作选框时,其它几个View中的数据无显示。
#测试环境描述 1、不使用代理,在 antv下“中国镜像”环境下测试过不支持中文 2、在 vue项目中测试过,并在项目中main.js中设置中文日期也不行(moment.locale("zh-CN"); )
#图片描述 全部为英文日期格式时,选框功能 正常 第1条数据为英文日期格式,后面的为中文日期格式,选框功能 正常 全部数据为中文日期格式时,选框功能 异常,操作选框后,其它view数据不显示
The text was updated successfully, but these errors were encountered:
这是数据为日期的时候才能通过筛选,而内置判断日期的方式就是取数据第一个尝试正则匹配,无法覆盖全部情况。所以保险的做法是:
chart.scale('date', { type: 'date' })
Sorry, something went wrong.
我尝试了你的方式,还是不行。
No branches or pull requests
#antv上的图例地址
https://antv-g2.gitee.io/zh/examples/interaction/brush#brush-ds-state
#问题描述
antv G2中的框选日期格式只支持 英文日期 ,不支持中文日期格式(例如:"2022-01-01")。当数据传入中文日期格式操作选框时,其它几个View中的数据无显示。
#测试环境描述
1、不使用代理,在 antv下“中国镜像”环境下测试过不支持中文
2、在 vue项目中测试过,并在项目中main.js中设置中文日期也不行(moment.locale("zh-CN"); )
#图片描述
全部为英文日期格式时,选框功能 正常
第1条数据为英文日期格式,后面的为中文日期格式,选框功能 正常
全部数据为中文日期格式时,选框功能 异常,操作选框后,其它view数据不显示
The text was updated successfully, but these errors were encountered: