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

aggregateFunc option of Field not working #13

Closed
ValentinH opened this issue Mar 24, 2015 · 2 comments
Closed

aggregateFunc option of Field not working #13

ValentinH opened this issue Mar 24, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@ValentinH
Copy link

Maybe I don't understand how to use it, but when I set aggregateFunc to 'avg' on a field using this syntax:

{name: 'test', caption: 'Test', aggregateFunc: 'avg'}

The created field button displays "Test (avg)" if I place it in the data area, however the table is still using the sum aggregate.

In the example, you use this syntax:

{
      name: '6', caption: 'Amount',
      dataSettings: {
          aggregateFunc: 'avg',
          formatFunc: function(value) {
             return Number(value).toFixed(0);
          }
      }
}

and it does work.

What is the reason I can't use directly the aggregateFunc option?

@nnajm
Copy link
Owner

nnajm commented Mar 25, 2015

It's a bug 🐛...

@nnajm nnajm added the bug label Mar 25, 2015
@nnajm nnajm self-assigned this Mar 27, 2015
@nnajm nnajm added this to the v1.0.9 milestone Mar 27, 2015
@nnajm
Copy link
Owner

nnajm commented Jun 28, 2015

👍

@nnajm nnajm closed this as completed Jun 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants