Пример #1
0
        protected CategoryAxisData GenerateCategoryAxisData(IEnumerable<string> data, string columnName)
        {
            CategoryAxisData categoryAxisData1 = new CategoryAxisData();
            StringReference stringReference1 = new StringReference();
            StringCache stringCache1 = new StringCache();

            uint i = 0U;
            foreach (string item in data) {
                StringPoint stringPoint1 = GenerateStringPoint(i++);
                NumericValue numericValue1 = new NumericValue() { Text = item };
                stringPoint1.Append(numericValue1);
                stringCache1.Append(stringPoint1);
            }

            uint count = i++;
            PointCount pointCount1 = new PointCount() { Val = (UInt32Value)count };
            stringCache1.InsertAt(pointCount1, 0);

            Formula formula1 = new Formula();
            formula1.Text = formulaColumn(columnName, 2, count);
            stringReference1.Append(formula1);
            stringReference1.Append(stringCache1);

            categoryAxisData1.Append(stringReference1);
            return categoryAxisData1;
        }