Questions tagged [mongodb-charts]
29 questions
6
votes
1 answer
How to plot uniform time-series in MongoDB Charts
I've just started to use MongoDB Charts to plot incoming data from a series of IoT devices that send at regular intervals. Each device sends a package with a timestamp and some data (JSON to our NoSQL db), and I would like to plot several devices on…

Jesper
- 63
- 3
6
votes
1 answer
MongoDB Charts – chart cumulative growth?
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…

deceze
- 510,633
- 85
- 743
- 889
5
votes
1 answer
MongoDB Charts custom binning for percentages
In MongoDB Charts I created an Circular Donut to view the average of my property score. This score ranges from 0 to 100 (including) as it is score based on percentage.
I want the scores to be aggregated up to steps of 10%, except the first and last…

Jelle
- 758
- 2
- 14
- 36
4
votes
1 answer
MongoDB Embedded Chart filter
I am having trouble with applying MongoDB filter (the optional filters that we leave for end-user to apply). I'm using an Iframe option to show charts.
when I add an integer-based filter it works fine and returns me a number of users
eg : (those…

Fazal
- 300
- 2
- 14
3
votes
1 answer
MongoDB aggregate count the number of products between hour range
I'm using mongodb charts. is it possible to get the number of products within the time range of (eg: 12:00am - 5:00 AM)
For example I have 2 products added at 3:00AM and then I will have 5 products added at 4:00AM.
I'm counting the products by it's…

Pinky Promise
- 229
- 3
- 18
2
votes
1 answer
Mongodb Atlas Charts - Show grouped count in different columns
I have a collection of "ofertas" in my DB and the data has this structure:
{
"_id" : ObjectId("6057a995e5a26c119d254f35"),
"empresa" : {
"direccion" : {
"direccion" : "concepcion arenal",
"cp" : "36950",
…

Gonzalo Santiago
- 338
- 3
- 16
1
vote
1 answer
Connecting a MongoDB serverless database to Mongo Charts
I want to connect a serverless MongoDB instance to MongoDB charts.
I don't see any of my serverless instances when I try to add data sources on my Mongo Chart dashboard.
If this is not possible, would somebody know if there is a way of upgrading a…

HuguesG
- 70
- 6
1
vote
0 answers
why is my mongodb chart embedding sdk not working?
My file directory is:
chartTesting
index.html
chart1.js
chart2.js
I am trying to desplay the chart in my website using mongodb chart embedding sdk,
I have index.html, chart1.js and chart2.js file in same folder.
I have been stuck in this…

veipunii
- 11
- 2
1
vote
1 answer
How to trim a value by a particular length and then apply lookUp in mongoDB
The main issue i'm facing is doing multi document joins. For example, when I try and run a query on orders by customer I can't find an easy way to join orders to customers on a customer id because in the orders object the customer id has _user$…

shash
- 45
- 5
1
vote
2 answers
MongoDB Charts how to get time difference of createdAt and updatedAt
sample data.
"id": 1
"createdAt": {
"$date": "2020-09-29T01:52:10.199Z"
},
"updatedAt": {
"$date": "2020-09-29T02:55:10.199Z"
}
"id": 2
"createdAt": {
"$date": "2020-09-29T01:52:10.199Z"
},
"updatedAt": {
"$date":…

Pinky Promise
- 229
- 3
- 18
1
vote
0 answers
How to add multiple filters to a chart using Mongodb Charts SDK
The MongoDB charts SDK allows you to filter a chart on whitelisted fields. In the dashboard itself, you can add more than one filter to a chart but as soon as you embed the chart using the Javascript SDK you can only use one filter. This is what the…

johan potgieter
- 13
- 5
1
vote
1 answer
Is MongoDB Enterprise required to run MongoDB Charts?
According to this link Mongodb charts is now generally available it requires a MongoDB Enterprise Server on-premises, in order to run.
However when I visit: https://docs.mongodb.com/charts/19.12/installation/ it says that only a MongoDB Charts…

Jack
- 2,891
- 11
- 48
- 65
1
vote
1 answer
MongoDB and Mongo Charts: How to calculate the delta to a previous item in an array?
I need to be able to create visualizations that display the difference between consecutive measurements.
I have MongoDB Charts connected to a MongoDB instance for visualizing data.
The problem is AFAIK MongoDB Charts can only display data from…

Mikko Mattila
- 113
- 6
0
votes
0 answers
Get total number of chats in MongoDB Charts
I have a chat application in MongoDB that stores documents with the following structure:
{
"_id": "63dd49fbf24c2721fc4b3a83",
"from": "user1",
"to": "user2",
"creation": {
"$date": {
"$numberLong": "1675446779129"
}
},
…

Pedro Rabbi
- 193
- 1
- 12
0
votes
0 answers
Problems with using @mongodb-js/charts-embed-dom to embed a chart from MongoDB
METHOD 1
I am trying to embed a chart from MongoDB using the following code, which was adapted from documentation from MongoDB and NPM.