Tag Labels from a Layered FactorRange

I have a three-level bokeh.models.FactorRangeone that I use to draw ticks on vbar-plot. The problem is that in general there are dozens of factors, and lower-level labels are very closely related.

I can use plot.xaxis.formatter = bokeh.models.PrintfTickFormatter(format='')to suppress drawing labels at the lowest level, but this seems like an ugly hack. In addition, I need the labels of the second level labels to be rotated, but it plot.xaxis.major_label_orientation = ...only affects the ticks of the lower level (as it does plot.xaxis.formatter).

How to manage each level bokeh.models.FactorRangeindividually?

+6
source share
1 answer

Bokeh 0.12.13, .

( ..) - . , , , - , , , . , , , , GitHub .

, Bokeh , Custom Extension. Bokeh, Axis . , , , CategoricalAxis :

https://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/models/axes/categorical_axis.ts#L83-L110

, 'parallel', .

+1

All Articles