/// <summary> /// Initializes a new instance of the <see cref="SlideChart" /> class. /// </summary> internal SlideChart(P.GraphicFrame pGraphicFrame, SCSlide slide) : base(slide, pGraphicFrame) { _pGraphicFrame = pGraphicFrame; _firstSeries = new Lazy <OpenXmlElement>(GetFirstSeries); _xValues = new Lazy <LibraryCollection <double> >(GetXValues); _seriesCollection = new Lazy <SeriesCollection>(() => Collections.SeriesCollection.Create(this, _cXCharts)); _categories = new Lazy <CategoryCollection>(() => CategoryCollection.Create(this, _firstSeries.Value, Type)); _chartType = new Lazy <ChartType>(GetChartType); ChartWorkbook = new ChartWorkbook(this); Init(); //TODO: convert to lazy loading }