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

【问题】官网样例测试问题 #4737

Closed
PiKesi522 opened this issue Mar 7, 2023 · 5 comments
Closed

【问题】官网样例测试问题 #4737

PiKesi522 opened this issue Mar 7, 2023 · 5 comments
Assignees
Labels

Comments

@PiKesi522
Copy link

G2官网图示样例错误,不知道是否是用了V5的方法但是sandbox仍使用4.2.9的原因?
https://codesandbox.io/s/kh93m8?file=/index.ts
https://codesandbox.io/s/csykfg?file=/index.ts

bug图示
image

@bigfacewo
Copy link

@pearmini
Copy link
Member

pearmini commented Mar 8, 2023

嗯嗯,应该是版本不一致导致的,最近修复一下。

@pearmini pearmini added the Bug label Mar 8, 2023
@pearmini pearmini self-assigned this Mar 8, 2023
@pearmini pearmini added the V5 label Mar 8, 2023
@bigfacewo
Copy link

关于这个例子还有个问题,那就是我将G2版本改为5.0.0-rc1,但是页面没有显示任何内容
https://codesandbox.io/s/green-dream-n5x0eb
image

我尝试在本地写代码测试,然后报错:

image

我把.projection({ type: "albersUsa" })这行代码去掉,可以渲染了,但是效果不对:
image

所以,到底哪个版本才是正确的呢?

@pearmini

@bigfacewo
Copy link

抱歉,我知道原因了,那就是API文档中的代码和例子不符合。

projection方法改为了coordinate,但是文档并没有更新,

@pearmini
Copy link
Member

抱歉,我知道原因了,那就是API文档中的代码和例子不符合。

projection方法改为了coordinate,但是文档并没有更新,

嗯嗯,我去把 API 文档中的改一下。

@hustcc hustcc self-assigned this Apr 23, 2023
@hustcc hustcc closed this as completed Apr 24, 2023
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

4 participants