☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

bokeh x-axis timestamp business days and business hours

Community Support
mingzhou.zhuang
mingzhou.zhuang

Hi, I’m trying to use bokeh to draw Candlestick chart. I’m using x_axis_type=“datetime”. There are some problems.

If I zoom in the chart, there are x-axis “gaps” between candlestick bars.

However, I would like to know how to remove the gaps non-business days and non-business hours.

I would like to add zoom in resolution into the chart.

For example,

In daily candlestick chart, zoom in, zoom in…, at last, the tickers in x-axis are business days.

In minutely candlestick chart, zoom in, zoom in…, at last, the tickers in x-axis are business minutes.

Thanks a lot.

⌁   Link to post
sameesiddiqui
sameesiddiqui

below answer can solve the problem.

···

On Tuesday, 20 December 2016 18:31:43 UTC+5:30, mingzho...@gmail.com wrote:

Hi, I’m trying to use bokeh to draw Candlestick chart. I’m using x_axis_type=“datetime”. There are some problems.

If I zoom in the chart, there are x-axis “gaps” between candlestick bars.

However, I would like to know how to remove the gaps non-business days and non-business hours.

I would like to add zoom in resolution into the chart.

For example,

In daily candlestick chart, zoom in, zoom in…, at last, the tickers in x-axis are business days.

In minutely candlestick chart, zoom in, zoom in…, at last, the tickers in x-axis are business minutes.

Thanks a lot.

⌁   Link to post

End of archived discussion · Replies are disabled