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

itemFormatter 这个属性用法写错了 #14

Open
755966092 opened this issue Sep 5, 2019 · 0 comments
Open

itemFormatter 这个属性用法写错了 #14

755966092 opened this issue Sep 5, 2019 · 0 comments

Comments

@755966092
Copy link

文档中是这样写的

<Legend
    itemFormatter(val) {
      return val + "xxx"; // val 为每个图例项的文本值
    }
/>

这样子写会报错, 应该

<Legend
    itemFormatter = {val => {
      return val + "xxx"; // val 为每个图例项的文本值
    }}
/>
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

1 participant