aggregateFunc option of Field not working #13

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

Comments

Projects
None yet
2 participants
@ValentinH

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

This comment has been minimized.

Show comment
Hide comment
@nnajm

nnajm Mar 25, 2015

Owner

It's a bug 🐛...

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

This comment has been minimized.

Show comment
Hide comment
@nnajm

nnajm Jun 28, 2015

Owner

👍

Owner

nnajm commented Jun 28, 2015

👍

@nnajm nnajm closed this Jun 28, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment