I am currently working on Chartify to realize support for bokeh >=3.0.0.
It is nearly done, but updating bokeh has broken some tests. Right now I am struggling with fixing them.
The main issue seems to be this method that some tests call:
def chart_color_mapper(chart_object):
return chart_object.figure.select(
bokeh.models.mappers.CategoricalColorMapper)[0]
(see code on GitHub)
For bokeh <= 2.4.3, this method returns a CategoricalColorMapper object
For bokeh >= 3.0.0, chart_object.figure.select(bokeh.models.mappers.CategoricalColorMapper)
is an empty array.
Is there a way to still get the CategoricalColorMapper of a figure like in the older bokeh versions?
In the migration guides and documentation I have found nothing mentioning anything related.
Update: Forgot to mention it, the colors in plotted charts are correct - I have manually checked it. This is really just about automatically testing it.