-
最新版本(5.0.22),官网明明白白写着的方法,调用就是报错。 除此之外,充斥着大量 object 类型。 "@antv/g2": "^5.0.22", |
Beta Was this translation helpful? Give feedback.
Answered by
pearmini
Aug 28, 2023
Replies: 2 comments 7 replies
-
截图,让我看看 |
Beta Was this translation helpful? Give feedback.
7 replies
-
尝试着来了解了一下G2,但是简单的使用下来简直不要太痛苦,如图中有很多这种Object类型,但是文档中找不到相关类型信息说明,本想着打开TS类型定义文件,正如标题中的问题,充斥着大量的Object,完全用不明白。 我认为要么类型定义清楚,能与文档中的对应上也可以,要么在文档中说明,否则只能说使用体验极差,完全靠猜,还没有思路。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mark.legend('color', {}}
而不是mark.legend('type', {}
mark.axis('y', { title: 'hello' })
chart.interaction("tooltip", { shared: true })