如何在 Cuxfilter 的散景图中旋转 X 轴标签?

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

我遇到的问题与 , 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()

产量:

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

正如@mosc9575 在评论中正确提到的那样,执行以下操作应该可以解决您的问题:

chart0.chart.xaxis.major_label_orientation = "vertical"

底层chart0.chart是一个散景对象,可以直接将所有散景属性应用到它。