Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bokeh Overlapping Bar Chart?

Tags:

python

bokeh

Is it possible to do overlapping bar chart in bokeh like this example in highcharts?

http://www.highcharts.com/demo/column-placement

enter image description here

like image 315
Xuan Avatar asked Sep 16 '26 00:09

Xuan


1 Answers

Yes. You can definitely create this type of chart using Bokeh lower/mid level APIs. That will require some coding to prepare the data and the glyphs. You can create and draw 2 different sources for the background and foreground rects separately. The plotting API docs and the examples on the repo should be helpful.

As a side note, at the moment (0.11 version) the high level Charts API does have a Bar builder function to create Bar charts with just one line but it doesn't support overlapping bars.

like image 153
Fabio Pliger Avatar answered Sep 17 '26 13:09

Fabio Pliger