Aspose.Slides.Examples.CSharp.Charts.SetChartSeriesOverlap.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Charts();

            using (Presentation presentation = new Presentation())
            {
                // Adding chart
                IChart chart = presentation.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 50, 50, 600, 400, true);
                IChartSeriesCollection series = chart.ChartData.Series;
                if (series[0].Overlap == 0)
                {
                    // Setting series overlap
                    series[0].ParentSeriesGroup.Overlap = -30;
                }

                // Write the presentation file to disk
                presentation.Save(dataDir + "SetChartSeriesOverlap_out.pptx", SaveFormat.Pptx);
            }
        }
    }
SetChartSeriesOverlap