☰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

Is html supported in axis major labels

Community Support
Bryan
Bryan

@Nabster No, not currently. The entire plot, including tick labels, is rendered on an HTML raster canvas, which does not support HTML formatting. Making this possible would require rendering individual tick labels as independent, absolutely positioned DOM elements on top of the canvas. It’s not impossible, but woudl be non-trivial, and it also might not be workable at all with some export methods. You could open a GitHub development discussion to propose it as a feature and see if there is any more interest or support for the idea.

⌁   Link to post
nghenzi
nghenzi

You can check this previous post.

With a custom extension you can control each tick label independently when it is rendered, it is really hacky and not robust, but it works.

In that moment I had generated a github issue you can check here

⌁   Link to post
Nabster
Nabster

Thanks a lot, this is quite a workaround…
I’m wondering if there is a leaner way of doing this, any tips on that?
I mean extending without copying and maintaining the entire class…

⌁   Link to post

End of archived discussion · Replies are disabled