Skip to content
Advertisement

Tag: vega

Having black coloured labels for pie chart in vega lite

I was referring to pie chart examples of vega-lite. I modified one of them to show percentage values as follows: This works perfectly and renders following: However, I wanted those percentage labels in black color. So I referred text mark and tried following: But this does not makes any changes to above output. I also tried putting color as encoding:

Advertisement