This certainly makes the width of the bars wider, but would be better to set them to "1 day" wide:
source = ColumnDataSource(df)
p = figure(x_axis_type="datetime", height=200, ...)
...
c.vbar('dt', top='pct_change', width=100000000, source=source)
You can give a timedelta
object as the width keyword argument, it will be converted to milliseconds.
import datetime
...
c.vbar('dt', top='pct_change', width=datetime.timedelta(days=1), source=source)
NumberSpec
can accept datetime
values, unless accept_datetime
is set to false
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With