继续接上一篇的内容,本文主要是讲矩阵的内容
用到的数据源如下:
DataTable dt = new DataTable(); dt.Columns.Add("FiscalYear", typeof(string)); dt.Columns.Add("FiscalMonth", typeof(string)); dt.Columns.Add("Actual", typeof(int)); dt.Columns.Add("Budget", typeof(int)); dt.Columns.Add("RFC", typeof(int)); dt.Rows.Add("FY1314", "P10", 1000, 1000, 1000); dt.Rows.Add("FY1314", "P9", 900, 900, 900); dt.Rows.Add("FY1314", "P8", 800, 800, 800); dt.Rows.Add("FY1314", "P7", 700, 700, 700); dt.Rows.Add("FY1314", "P6", 900, 900, 900); dt.Rows.Add("FY1314", "P5", 800, 800, 800); dt.Rows.Add("FY1314", "P4", 700, 700, 700); dt.Rows.Add("FY1314", "P3", 900, 900, 900); dt.Rows.Add("FY1314", "P2", 800, 800, 800); dt.Rows.Add("FY1314", "P1", 700, 700, 700);