nnajm / orb

Pivot table javascript library
https://nnajm.github.io/orb/
MIT License
558 stars 172 forks source link

Use of custom aggregation function displays wrong name #14

Closed ValentinH closed 9 years ago

ValentinH commented 9 years ago

If you set a custom aggregation in the aggregateFunc setting, the field still displays (sum) when dropped in the data area.

Indeed, when setting a custom function, I don't see currently any way to set this name. Maybe an aggregateFuncName option would be appreciable but I don't know if it is the best way to do it...

nnajm commented 9 years ago

aggregateFuncName already exists, it's just not documented. Sorry for that.

ValentinH commented 9 years ago

OK I understand. Indeed, I had seen aggregateFuncName in the code but I wasn't sure it was accessible from the config.

nnajm commented 9 years ago

:thumbsup: