Example #1
0
        private LibraryCollection <double> GetXValues()
        {
            var sdkXValues = _firstSeries.Value?.GetFirstChild <C.XValues>();

            if (sdkXValues?.NumberReference == null)
            {
                return(null);
            }

            IReadOnlyList <double> points =
                ChartReferencesParser.GetNumbersFromCacheOrSpreadsheet(sdkXValues.NumberReference, this);

            return(new LibraryCollection <double>(points));
        }
Example #2
0
        private IReadOnlyList <double> GetPointValues()
        {
            C.NumberReference numReference;
            C.Values          cVal = _seriesXmlElement.GetFirstChild <C.Values>();
            if (cVal != null) // scatter type chart does not have <c:val> element
            {
                numReference = cVal.NumberReference;
            }
            else
            {
                numReference = _seriesXmlElement.GetFirstChild <C.YValues>().NumberReference;
            }

            return(ChartReferencesParser.GetNumbersFromCacheOrSpreadsheet(numReference, SlideChart));
        }