-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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] 5.2.1版本下,环形图series下的data属性的label属性,为数据定制标签功能不生效了,在5.0.2版本还是OK的 #16282
Comments
@fengnian7 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 TRANSLATEDTITLE [Bug] Under version 5.2.1, the label attribute of the data attribute under the ring chart series, the function of customizing labels for data is not effective, and it is STILL OK in version 5.0.2 BODY Version5.2.1 Link to Minimal ReproductionNo response Steps to ReproduceHello, our usage scenarios are: Current BehaviorAfter upgrading from version 5.0.2 to version 5.2.1, the text in the middle of the ring chart cannot be displayed Expected BehaviorIt is expected that version 5.2.1, the text in the center of the ring chart can be displayed Environment-OS:
-Browser:
-Framework: Any additional comments?No response |
@fengnian7 因为新版本非法数据被过滤了,你可以把最后一个数据的 value 设置为 0。如果你只是想要在这地方放一个标签,可以用 title 组件或者更灵活的 graphic 组件 |
十分感谢,其他两种方式我们之前测试过,因为我们的使用场景比较特殊,所以该方法都没有用,刚才通过加个value字段解决问题了。哈哈 |
Version
5.2.1
Link to Minimal Reproduction
No response
Steps to Reproduce
你好我们的使用场景是:
环形图的最外层的label,以及emphasis我设置为false,因为我们的使用场景不想要他展示,就是想实现环形图中心定制文字的场景。不需要展示label,所以我们的代码如下,举个例子:
在5.0.2版本,我这样设置环形图中心的label
给中心直接label写死为“中心标签”,5.0.2版本可以生效,环形图中间的四个字正常显示
但是同样的代码,在5.2.1版本下,这个series.date.label不生效了,这四个文字无法显示了
Current Behavior
从5.0.2版本升级到5.2.1版本之后,环形图中间的文字展示不出来了
Expected Behavior
期望5.2.1版本,环形图中心的文字能够展示
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: