简体   繁体   中英

How to rotate X-axis labels in bokeh figure in Cuxfilter?

I have the exact same issue as this question , except the implementation within cuxfilter (RAPIDS)

在此处输入图像描述

cux_df = cuxfilter.DataFrame.from_dataframe(test)
chart0 = cuxfilter.charts.bar('index', 'count')
chart0.xaxis.major_label_orientation = "vertical"
chart0.view()

yields:

AttributeError: 'Bar' object has no attribute 'xaxis'

As @mosc9575 rightly mentioned in the comments, doing the following should resolve your issue:

chart0.chart.xaxis.major_label_orientation = "vertical"

The underlying chart0.chart is a bokeh object, and its possible to apply all the bokeh properties to it directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM