I would like to add a label for each color in a Makie.jl-pie chart, e.g.,
data = [0.63, 0.15, 0.11, 0.11, 0.01]
colors = [:red, :yellow, :grey, :blue, :green]
f, ax, plt = CairoMakie.pie(data, color=colors, axis = (autolimitaspect = 1, ), label="A,B,C,D,E")
Legend(f[1,2], ax)
display(f)
but not one label for the whole pie chart but for each color separately. The label-attribute doesn't seem to accept vectors and labels doesn't exist.
You can try adding the labels using the
textkey in a loop like this.