In this example, I am using a two-dimensional array to provide attributes for a graph from Fusion Charts :
/*Store sales data*/
string[,] arrData = new string[4, 2];
arrData[0, 1] = “Annual Cash Compensation”;
arrData[1, 1] = “Annual LTI Compensation”;
arrData[2, 1] = “Current Financial Protection”;
arrData[3, 1] = “Future Financial Security”;
/*Store sales amounts*/
arrData[0, 2] = PercentDC.ToString();
arrData[1, 2] = PercentLT.ToString();
arrData[2, 2] = PercentCFP.ToString();
arrData[3, 2] = PercentFFS.ToString();
/*Now, we need to convert this data into XML. We convert using
string concatenation.*/
string strXML = “”;
/*Convert data to XML and append*/
for(int pieI = 0; pieI <= arrData.Length - 1; pieI++)
{ strXML = strXML & “