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

feat(ava): add polar animate, and encode date column #749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hustcc
Copy link
Member

@hustcc hustcc commented Nov 10, 2023

PR includes

  • add animate on polar chart
  • for date column, encode with new Date

@chenluli
Copy link
Member

commit message scope 规范 需要加上修改的模块feat(ava/advisor): xx

const dp = dataProps.find((dataProp) => dataProp.name === field);

if (dp?.recommendation === 'date') {
return (d) => new Date(d[field]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要不判断下是否能转成 date 吧,如果是 invalid date,还是输出原 field

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那会不会有些转了,有些没转?

Copy link
Member

@chenluli chenluli Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那会不会有些转了,有些没转?

嗯 如果部分转了,部分没转确实也会有问题 但不判断的话,可能会导致值都被转成 invalid date 了,严谨点的话需要判断所有的都能转,才做这个转换?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经判断了 date 类型的,还可能转化失败吗?

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

Successfully merging this pull request may close these issues.

None yet

2 participants