I have a collection that, after applying some aggregation stages in the query ‘Query Bar’ ends up with documents containing three fields: _id, count and date. I created a columns chart correctly.
Using the Charts Embedding SDK for Javascript, I am embedding that column chart properly in a web page, but when I try to apply a range filter over the ‘date’ field (for instance, documents after a certain date) the resultant chart is not as expected.
What is the correct way of filtering by range for a date field using the Embedding SDK? I have tried these two ways:
Thank you so much for your quick reply!
I just realized that my filter from the SDK was correct the whole time, and the problem was in aggregation steps that I was doing in the query bar (bad grouping).