Is it possible to make a pie chart material?

Hi all,

is there a way to make a pie chart that can consist of 1 up to 4 colors and should be divided evenly (so no advanced math required)? The pie chart will be applied as a material to a cylinder. The colors are assigned through parameter values (set vector parameter value) for instance.

Basically we have a mesh that can belong to multiple groups (which each have a group color). These meshes (cylinders) should then show those colours that they are linked to. This can be only one up to four groups that are linked.

Anyway has a clue how to do this? Or another way to do it? I’ve seen some advanced pie chart projects/plugins but we like to keep it simple (if possible).

Thanks in advance for your support.

There is unreal example project “UiMAterialLAb” it has material that can create pie chart (after some editing it and adding multiple pie slices)

ps
can you post picture of whole mesh, i may not be getting what exactly you need.