private void addColumn(object[] array, int columnNumber, int numberOfColumns)
 {
     ChartColumn column = new ChartColumn(array[0].ToString());
     for (int i = 1; i < array.Length; i++)
     {
         if (Rows.Count >= i)
         {
             Rows[i-1][columnNumber] = array[i];
         }
         else
         {
             Rows[i - 1] = new object[numberOfColumns];
         }
     }
 }
        private void addColumn(object[] array, int columnNumber, int numberOfColumns)
        {
            ChartColumn column = new ChartColumn(array[0].ToString());

            for (int i = 1; i < array.Length; i++)
            {
                if (Rows.Count >= i)
                {
                    Rows[i - 1][columnNumber] = array[i];
                }
                else
                {
                    Rows[i - 1] = new object[numberOfColumns];
                }
            }
        }