'MongoDB Charts - adding new fields to cumulative dataset

I followed the top answer in this post to build a cumulative growth chart.

MongoDB Charts – chart cumulative growth?

It works great, apart from one thing. I need to add additional fields to the collection, so I can filter on them in the chart.

Nothing I try will allow me to add any fields - the only field I have available to me is _id and the calculated cumGrowth.

How can I add other fields from the dataset to the query?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source