mongodb-charts

MongoDB Charts – chart cumulative growth?

[亡魂溺海] 提交于 2020-05-15 18:49:11
问题 Using MongoDB Charts, how can I chart cumulative growth? Using the _id value of a document which contains the information of when it was created, I'd like to chart the number of documents in my database over time. E.g., if in July 10 documents were created, and in August another 10 were created, then the chart should display 10 for July and 20 for August. It's easy to bin document creation dates per months (see below example), but I'd like to turn this into a cumulative growth chart. MongoDB

MongoDB Charts – chart cumulative growth?

这一生的挚爱 提交于 2020-05-15 18:48:25
问题 Using MongoDB Charts, how can I chart cumulative growth? Using the _id value of a document which contains the information of when it was created, I'd like to chart the number of documents in my database over time. E.g., if in July 10 documents were created, and in August another 10 were created, then the chart should display 10 for July and 20 for August. It's easy to bin document creation dates per months (see below example), but I'd like to turn this into a cumulative growth chart. MongoDB