You are setting the span into the search using some $token$ , right? That's the same as writing it into the search itself, and causes the minspan to be ignored as per the docs.
Let the user set bins instead of span . Then you're much more flexible with respect to different time ranges being set, and you can use minspan along with bins .
For example, you could have a dropdown with three settings "finest", "fine", "regular" that map to 500, 200, 100 bins.
... View more