private void AddSemanticallyDifferentFromRootedParentTableEntry(BoolValue[] semanticallyDifferentFromRootedParent) { if (SemanticallyDifferentFromRootedParentDataTable == null) { var table = new DataTable(SemanticallyDifferentFromRootedParentParameterName, ""); table.VisualProperties.YAxisTitle = "Percentage"; table.VisualProperties.YAxisMaximumFixedValue = 100.0; table.VisualProperties.YAxisMaximumAuto = false; DataRow differentRow = new DataRow("Different From Parent"); differentRow.VisualProperties.StartIndexZero = true; table.Rows.Add(differentRow); DataRow sameRow = new DataRow("Same As Parent"); sameRow.VisualProperties.StartIndexZero = true; table.Rows.Add(sameRow); SemanticallyDifferentFromRootedParentDataTable = table; } double different = semanticallyDifferentFromRootedParent.Count(x => x.Value); SemanticallyDifferentFromRootedParentDataTable.Rows["Different From Parent"].Values.Add(different / semanticallyDifferentFromRootedParent.Length * 100.0); SemanticallyDifferentFromRootedParentDataTable.Rows["Same As Parent"].Values.Add((semanticallyDifferentFromRootedParent.Length - different) / semanticallyDifferentFromRootedParent.Length * 100.0); }