Mongodb Charts SDK - dynamically configure binning

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?

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