Hello,
Welcome to Microsoft Q&A!
You could use win32 api to create and show charts.
The primary function used to draw pie charts is the AngleArc function. You could refer to the Doc:Drawing a Pie Chart
If you want to create a Bar chart you could try to use Rectangle function.
Thank you.
Jeanine