Mongodb Datasource using Time series chart with "Max data points" Query Options not working

The “Max data points” query option in the Time series panel seems not effective.
The data points in the panel are always too many and not changing no matter how many “Max data points” I input.

I’m using MongoDB datasouce from MongoDB plugin. And the query I used is this:

bard_db.balance.aggregate([
{
$project: {
updateTimeDtObject: 1,
usdtAssets: 1,
_id: 0
}
},
{
$sort: {
updateTimeDtObject: -1
}
}
])

1 Like