I am trying to figure out how I can use the Mongodb JS SDK to modify the binning setting in my data. I am not able to find anything in the SDK documentation- basically my use case is- I want to show a Day of the Month bin when the user selects monthly in a drop down, and a Week bin when the user selects weekly and so on. Is this an option?
Skip to main content
2 years later
Have you found out the answer of it ? I want to do the same. How can I if you know ?
Unfortunately this is not supported yet, but the ability to dynamically change things like binning is planned for the future. For now, you’d need to create multiple charts with different binning settings, and swap in the correct one for the user’s context.
Tom
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Why does it automatically add sample data when creating a cluster every time? | 2 | 977 | Dec 2024 |
How to pass dynamic values to aggregate query through code? | 1 | 1.2k | Jun 2024 |
Unable to Enable Injection Function | 0 | 25 | Oct 2024 |
Conflicted data type in charts after aggregation | 1 | 27 | Nov 2024 |
Importing dashboard in chart use the wrong database | 0 | 34 | Nov 2024 |