最简单的饼图代码:
m_ChartWnd.Attach(m_hWnd, kTypePie);
m_ChartWnd.GetChart()->AddPie(1.5, _T("一季度"));
m_ChartWnd.GetChart()->AddPie(3.8, _T("二季度"));
m_ChartWnd.GetChart()->AddPie(4.4, _T("三季度"));
m_ChartWnd.GetChart()->AddPie(3.9, _T("四季度"));
m_ChartWnd.GetChart()->SetTitle(_T("饼图示例"));
m_ChartWnd.GetChart()->SetPieColor(RGB(128, 0, 0), 2);
效果图: