☰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 it possible to have multi-level category labels?

Community Support
redstreet0
redstreet0

Hello,

I’m trying to see if it’s possible to have multi-level category labels. Excel seems to be able to do this fine, using PivotTables at least. I can’t seem to find documentation concerning this.

An example might illustrate:

Here, Fruit/Vegetables/Legumes is the higher level category.

Thanks!

⌁   Link to post
Sarah_Bird1
Sarah_Bird1

Have you tried adding a second CategoricalAxis? I'm not sure it'll do
exactly what you want, but it's what I'd try.

Here's the docs on adding a second axis:
http://bokeh.pydata.org/en/latest/docs/user_guide/plotting.html#twin-axes

···

On 1/20/16 11:42 PM, redstreet0@gmail.com wrote:

Hello,
I'm trying to see if it's possible to have multi-level category labels.
Excel seems to be able to do this fine, using PivotTables at least. I
can't seem to find documentation concerning this.

An example might illustrate:
http://oi67.tinypic.com/jhwlxe.jpg

Here, Fruit/Vegetables/Legumes is the higher level category.

Thanks!

--
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
<mailto:bokeh+unsubscribe@continuum.io>.
To post to this group, send email to bokeh@continuum.io
<mailto:bokeh@continuum.io>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io?utm_medium=email&utm_source=footer&gt;\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
redstreet0
redstreet0

Thanks, I did notice that, but it doesn’t help because because a second CategoricalAxis in bokeh would be evenly spaced, unlike the example I showed.

···

On Thursday, January 21, 2016 at 6:44:13 AM UTC-8, Sarah Bird wrote:

Have you tried adding a second CategoricalAxis? I’m not sure it’ll do

exactly what you want, but it’s what I’d try.

Here’s the docs on adding a second axis:

http://bokeh.pydata.org/en/latest/docs/user_guide/plotting.html#twin-axes

On 1/20/16 11:42 PM, redst...@gmail.com wrote:

Hello,

I’m trying to see if it’s possible to have multi-level category labels.

Excel seems to be able to do this fine, using PivotTables at least. I

can’t seem to find documentation concerning this.

An example might illustrate:

http://oi67.tinypic.com/jhwlxe.jpg

Here, Fruit/Vegetables/Legumes is the higher level category.

Thanks!

–
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+un...@continuum.io

mailto:bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io

mailto:bo...@continuum.io.

To view this discussion on the web visit

https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io

<https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Bryan
Bryan

To accomplish that plot linked below requires some work around both canvas layout, as well as supporting nested coordinate systems. I'm going to start working on this soon, but it's not a trivial task, and will take some substantial time.

Bryan

···

On Jan 21, 2016, at 1:37 PM, redstreet0@gmail.com wrote:

Thanks, I did notice that, but it doesn't help because because a second CategoricalAxis in bokeh would be evenly spaced, unlike the example I showed.

On Thursday, January 21, 2016 at 6:44:13 AM UTC-8, Sarah Bird wrote:
Have you tried adding a second CategoricalAxis? I'm not sure it'll do
exactly what you want, but it's what I'd try.

Here's the docs on adding a second axis:
http://bokeh.pydata.org/en/latest/docs/user_guide/plotting.html#twin-axes

On 1/20/16 11:42 PM, redst...@gmail.com wrote:
> Hello,
> I'm trying to see if it's possible to have multi-level category labels.
> Excel seems to be able to do this fine, using PivotTables at least. I
> can't seem to find documentation concerning this.
>
> An example might illustrate:
> http://oi67.tinypic.com/jhwlxe.jpg
>
> Here, Fruit/Vegetables/Legumes is the higher level category.
>
> Thanks!
>
> --
> 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+un...@continuum.io
> <mailto:bokeh+un...@continuum.io>.
> To post to this group, send email to bo...@continuum.io
> <mailto:bo...@continuum.io>.
> To view this discussion on the web visit
> https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io
> <https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io?utm_medium=email&utm_source=footer&gt;\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/98d68129-03a4-4900-a8b7-867f80b70048%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
redstreet0
redstreet0

Great, that’s good to know.

Also, thanks for Bokeh! It’s been smooth and nice even though I’ve only just happened upon it.

···

On Thursday, January 21, 2016 at 11:40:22 AM UTC-8, Bryan Van de ven wrote:

To accomplish that plot linked below requires some work around both canvas layout, as well as supporting nested coordinate systems. I’m going to start working on this soon, but it’s not a trivial task, and will take some substantial time.

Bryan

On Jan 21, 2016, at 1:37 PM, redst...@gmail.com wrote:

Thanks, I did notice that, but it doesn’t help because because a second CategoricalAxis in bokeh would be evenly spaced, unlike the example I showed.

On Thursday, January 21, 2016 at 6:44:13 AM UTC-8, Sarah Bird wrote:

Have you tried adding a second CategoricalAxis? I’m not sure it’ll do
exactly what you want, but it’s what I’d try.

Here’s the docs on adding a second axis:
http://bokeh.pydata.org/en/latest/docs/user_guide/plotting.html#twin-axes

On 1/20/16 11:42 PM, redst...@gmail.com wrote:

Hello,
I’m trying to see if it’s possible to have multi-level category labels.
Excel seems to be able to do this fine, using PivotTables at least. I
can’t seem to find documentation concerning this.

An example might illustrate:
http://oi67.tinypic.com/jhwlxe.jpg

Here, Fruit/Vegetables/Legumes is the higher level category.

Thanks!

–
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+un...@continuum.io

mailto:bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io

mailto:bo...@continuum.io.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io

<https://groups.google.com/a/continuum.io/d/msgid/bokeh/10eda5b5-ec46-4065-8cd2-b0a66b7aa539%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–
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+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/98d68129-03a4-4900-a8b7-867f80b70048%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Sarah_Bird1
Sarah_Bird1

Thanks for saying that.

We love to see how people are using Bokeh, if you have any public facing
projects don't hesitate to share.

···

On 1/22/16 1:02 AM, redstreet0@gmail.com wrote:

Also, thanks for Bokeh! It's been smooth and nice even though I've only
just happened upon it.

⌁   Link to post

End of archived discussion · Replies are disabled