diff --git a/src/stats/violin.jl b/src/stats/violin.jl index 9151eb606..de81d35ef 100644 --- a/src/stats/violin.jl +++ b/src/stats/violin.jl @@ -46,8 +46,9 @@ function plot!(plot::Violin) return s == :left ? - 1 : s == :right ? 1 : 0 end colors = broadcast(x̂, color) do _, c + rgba = to_color(c) # `RGBA` values cannot be sorted - return rgbatuple(c) + return (red(rgba), green(rgba), blue(rgba), alpha(rgba)) end sa = StructArray((x = x̂, side = sides, color = colors))