How to dynamically generate 3D pie charts?

Thank you for sharing. I used the content you shared, but it seems that it can only be used on the UI. How should I use it when I attach the material to Static Mesh?