Skip to content

Line break in categorical axis labels #8169

Description

@bsteubing

Feature request (similar to #7317)

Please introduce some straightforward way to include line breaks (e.g. "\n" or "<br>") in labels of categorical axes (currently these are ignored):

factors = ["a very long label \n that needs a break", 
           "a very long label \\n that needs a break",  
           "a very long label <br> that needs a break", 
          ]
x = [50, 40, 65,]
p = figure(y_range=factors)
p.circle(x, factors, size=15, fill_color="orange", line_color="green", line_width=3)
show(p)

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions