Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Box and Whisker - Median line color

Is there a way to provide a unique color for the median line displayed in the box and whisker charts?

Unfortunately, the box trace attribute don’t support custom color for median line (or any other line segment) at the moment.

That said, you get the desired results by adding a layout shape onto of the box trace at exactly the position of the median line.

Here’s an example: http://codepen.io/etpinard/pen/pbYbAB

1 Like

Hi @etienne

Could you please let me know the way to update median value in mulitple box and whisker? I tried using the same logic in a loop, looks like all the medians are drawn above one another. I’m not sure which attribute to read to update the x,y position of the median line for the multiple box and whisker.

Here’s how: http://codepen.io/etpinard/pen/YWbpjo

1 Like