vs2010 MFC 用 Microsoft Chart Control 控件做统计图怎么录入数据?
m_chart.put_Row(1);m_chart.put_RowLabel(_T("一月"));
m_chart.put_Row(2);
m_chart.put_RowLabel(_T("二月"));
m_chart.put_Row(3);
m_chart.put_RowLabel(_T("三月"));
m_chart.put_Column(1);
m_chart.put_ColumnLabel(_T("吃"));
m_chart.put_Column(2);
m_chart.put_ColumnLabel(_T("穿"));
m_chart.put_Column(3);
m_chart.put_ColumnLabel(_T("住"));
m_chart.put_Column(4);
m_chart.put_ColumnLabel(_T("行"));
// m_chart.put_Data(_T("数据"));
//行列数据录入
long lValue = 10;
VARIANT vParam;
vParam.vt = VT_I4;
vParam.lVal = lValue;
//m_chart.put_ChartData(vParam);
/*
m_chart.put_Row(1);
m_chart.put_Column(2);
num = 20;
vParam.dblVal = num;
m_chart.put_ChartData(vParam);
其他地方都设置好了,就是不知道怎么录入数据