stacked hbar plots

Hi

I haven’t found any examples regarding the creation of stacked hbar plots (with bokeh.plotting.figure.hbar).

bokeh.chars.Bar has a “stack” argument, but there aren’t any plots with horizontal bars to be found.

If possible, could you provide a small example?

Best regards

Hi,

As bokeh.plotting is a slightly lower level interface, you will have to do the "stacking" by hand. Here is an example that stacks two bars horizontally:

  https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/bar_chart.py

It could probably be very useful to have a "stacked" util function that could automatically generate stacked coordinates suitable for use by hbar and vbar. A pull request to add something like that would be welcome, if you are interested in making an OSS contribution.

Thanks,

Bryan

···

On Nov 12, 2016, at 11:31 AM, Rudelwolf <[email protected]> wrote:

Hi

I haven't found any examples regarding the creation of stacked hbar plots (with bokeh.plotting.figure.hbar).
bokeh.chars.Bar has a "stack" argument, but there aren't any plots with horizontal bars to be found.
If possible, could you provide a small example?

Best regards

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/6a7a1fb5-9542-438a-b7fd-a3df198266a6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.