MongoDB aggregate

Hi ,
my problem here is how I can get a graph on grafana in which i can have the evolution of a sum of one field of MongoDB collection.
Please I need your help.