Use auto_date_histogram instead of date_histogram
We can try to use auto_date_histogram
instead of date_histogram
. It will make Bokeh visualizations more uniform when the range of time is changed by the user.
The idea is to replace:
s.aggs.bucket("commits", 'date_histogram', field='grimoire_creation_date',
calendar_interval=interval)
with
s.aggs.bucket("commits", 'auto_date_histogram', field='grimoire_creation_date',
buckets=20)