Skip to content

在G2 5.1 中如何获取 axis 的所有值,也就是axis的label的集合 #5629

Closed Answered by pearmini
PDieE asked this question in Q&A
Discussion options

You must be logged in to vote

写错了:

chart.render().then(callback)

我以为你说的 label,axis label 可以可以先获得 axis(className 就是 axis),然后打印出来,看看 children 里面 label 的 className

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pearmini
Comment options

Answer selected by PDieE
@PDieE
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5628 on October 12, 2023 06:52.