I want to reproduce the plot in https://plotly.com/python/box-plots/#choosing-the-algorithm-for-computing-quartiles with holoviews and the plotly backend.
Given
import holoviews as hv
hv.extension("plotly")
import plotly.express as px
df = px.data.tips()
boxwhisker = hv.BoxWhisker(df, kdims=['day', 'smoker'], vdims=['total_bill']).opts(color='smoker')
hv.save(boxwhisker, "holoviews_plotly.html")
I get this error
ValueError:
Invalid value of type 'numpy.ndarray' received for the 'color' property of box.marker
Received value: array(['No', 'No', ..., ], dtype=object)
The 'color' property is a color and may be specified as:
...
where I was expecting that the kdim color mapping of 'smoker'
would be done automatically. Did I miss something? Is there a better or recommended way to do this differently?