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

Transform percent: If all 0 that percent is NaN, expect 0 #20

Closed
nikogu opened this issue Jan 10, 2018 · 0 comments
Closed

Transform percent: If all 0 that percent is NaN, expect 0 #20

nikogu opened this issue Jan 10, 2018 · 0 comments

Comments

@nikogu
Copy link

nikogu commented Jan 10, 2018

const dv = new DataView();
    dv.source(data).transform({
      type: 'percent',
      field: 'y',
      dimension: 'x',
      as: 'percent',
    });

If y is all 0, percent is NaN, expect 0.

  • version: 0.8.3
nikogu referenced this issue in ant-design/ant-design-pro Jan 10, 2018
@dxq613 dxq613 closed this as completed in db2c074 Jan 15, 2018
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