☰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

How to fix the height of bar in bar chart

Community Support
Cooper_hu
Cooper_hu

Hi,

I’m using bokeh to make a vertical bar chart, and the number of bars in this chart will be different based on the difference of selected criteria, so the chart will look very weird if there is only one or two bars, so I want to know how can I get a fixed height of bar and also fixed distance between two bars, to get a consistence chart, it looks like below attached.

Thanks for your time.

Cooper

⌁   Link to post
Bryan
Bryan

Hi,

Please don't spam the same question multiple times on different (old) questions. As the maintainer of the project and list, doing that it makes it disorganized and personally stressful -- either the same answer now has to be duplicated in multiple places, or else we have to worry that users will run across the unanswered versions.

Thanks,

Bryan

···

On Jun 13, 2018, at 23:58, Cooper hu <cooper.hu168@gmail.com> wrote:

Hi,

I'm using bokeh to make a vertical bar chart, and the number of bars in this chart will be different based on the difference of selected criteria, so the chart will look very weird if there is only one or two bars, so I want to know how can I get a fixed height of bar and also fixed distance between two bars, to get a consistence chart, it looks like below attached.

Thanks for your time.

Cooper

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/701a4de5-7a3e-4f39-a216-467bdcbeb2ae%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<Screen Shot 2018-06-14 at 2.38.11 PM.png>

⌁   Link to post

End of archived discussion · Replies are disabled