Help labels bokeh

Hey I’m new using bokeh I would like to know how to rotate the labels that are piled at the bottom. the code that I have is the following:

import numpy as np
import pandas as pd
import pandas_bokeh
pandas_bokeh.output_notebook()

pd.set_option('plotting.backend', 'pandas_bokeh')

from bokeh.models.widgets import DataTable, TableColumn
from bokeh.models import ColumnDataSource

region = data.groupby(['Order Region'])['Sales per customer'].sum().reset_index().sort_values('Sales per customer')
df = pd.DataFrame(region).set_index("Order Region")

p_bar = df.plot_bokeh.bar(
    ylabel="Order Region", 
    title="Ventas por región", color="Green", legend = "top_left",
    alpha=0.6)

https://docs.bokeh.org/en/latest/docs/user_guide/styling.html#tick-label-orientation

2 Likes