Let a new series use the secondary value axis on Chart starts to support in Spire.Presentation 2.2.1
We are glad to announce a new hotfix version of Spire.Presentation Pack 2.2.1 today. In this version, our Develop Team added a new feature to let a new series use the secondary value axis on chart. Please check the code snippet as below:
Code Snippet:
string outputFile = @"test.pptx"; Presentation presentaion = new Presentation(); IChart ch = presentaion.Slides[0].Shapes.AppendChart(ChartType.Column100PercentStacked, new RectangleF(10, 10, 300, 300)); ch.PrimaryValueAxis.ChartCrossType = ChartCrossesType.AxisCrossesAtZero; ch.ChartTitle.TextProperties.Text = ChartCrossesType.Custom.ToString(); ; ch.HasTitle = true; ch.Series[0].UseSecondAxis = true; presentaion.SaveToFile(outputFile, FileFormat.Pptx2010);
Free Trail to evaluate Spire.Presentation Pack 2.2.1 here:
http://www.e-iceblue.com/Download/download-presentation-for-net-now.html