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

饼图 legend 为日期类型,会缺失图例,也可能会出现NaN #4105

Closed
th-wu opened this issue Aug 23, 2022 · 1 comment
Closed

Comments

@th-wu
Copy link

th-wu commented Aug 23, 2022

背景

思路

  • legend值识别为‘cat’而非‘timeCat’时,期望结果达成
@hustcc
Copy link
Member

hustcc commented Sep 9, 2022

识别类型根据数据和一些规则来的,可能会有失误的情况,可以手动设置为 timeCat

chart.scale('legend-field', { type: 'timeCat' });

@hustcc hustcc closed this as completed Sep 9, 2022
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

2 participants