How to draw Pie Chart

Can anyone tell me how can i draw the pie chart by using the visual C++??

Thank you.

You mean, with OpenGL ? :slight_smile:

Draw a triangle fan for each color :

  • first vertex at the center of the pie
  • all subsequent vertices will be at the edge, approximating a circle.

See this sample picture .