Optional Aggregation
Most chart types rely on aggregation due to the nature of MongoDB datasets. Sometimes I have simple datasets where I want to set a field not as an aggregation but as the value of a field. Yes, we could use spreadsheets to achieve this, but its nice having all the charts in one interface
3
votes
![](https://secure.gravatar.com/avatar/05f1b262023ef2cb57a02cee2d308947?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
AdminTom (Product Manager, MongoDB) commented
Hi John, can you give an example? When we have aggregation channels it means the chart expects a number (e.g. to show the length of a bar). In the case where you only have one document in a category, an aggregation like Sum, Min or Max will all return the raw value.