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

堆叠柱状图关于日期的bug #1679

Closed
kooriookami opened this issue Sep 30, 2020 · 6 comments
Closed

堆叠柱状图关于日期的bug #1679

kooriookami opened this issue Sep 30, 2020 · 6 comments
Assignees

Comments

@kooriookami
Copy link

G2版本2.0.1
https://codesandbox.io/s/p9bke
当横坐标为年月日日期时,最右边会莫名多1个数据。
image
当把legend都关闭时,最右边会多2个数据。
image

@arcsin1
Copy link
Contributor

arcsin1 commented Sep 30, 2020

这个是因为默认坐标轴会nice:true。解决办法可以这样:
xAxis: {
nice: false
}

@hustcc
Copy link
Member

hustcc commented Sep 30, 2020

这个是因为默认坐标轴会nice:true。解决办法可以这样:

xAxis: {

nice: false

}

要不默认内部 x 轴都为false 吧

@arcsin1
Copy link
Contributor

arcsin1 commented Sep 30, 2020

这个是因为默认坐标轴会nice:true。解决办法可以这样:
xAxis: {

nice: false

}

要不默认内部 x 轴都为false 吧

但是 横轴还是有问题 你看图 我刚测试了下也是

@arcsin1 arcsin1 closed this as completed Sep 30, 2020
@arcsin1 arcsin1 reopened this Sep 30, 2020
@arcsin1
Copy link
Contributor

arcsin1 commented Sep 30, 2020

这个是因为默认坐标轴会nice:true。解决办法可以这样:
xAxis: {

nice: false

}

要不默认内部 x 轴都为false 吧

但是 横轴还是有问题 你看图 我刚测试了下也是

倒是可以,但横轴计算时间还是有点问题

@arcsin1
Copy link
Contributor

arcsin1 commented Sep 30, 2020

@kooriookami 可以这么解决 https://codesandbox.io/s/kind-chatterjee-uubyf?file=/index.js 时间的比例尺需要特殊处理一下,后续我们会优化到

@hustcc
Copy link
Member

hustcc commented Oct 1, 2020

已经解决,节后发布版本。

@hustcc hustcc closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants