Free Support Forum - aspose.com

ChartPlotAreaEx change height

Hi,


I’m trying to change the height of PlotArea inside a ChartPlotAreaEx.

ChartEx oChart = MySlide.Shapes.AddChart(ChartTypeEx.LineWithMarkers, 50, 50, 600, 400);

oChart.PlotArea.Height = 200;

I’m trying everything but I’m not able to minimize the PlotArea height of the graph.

Can you help?

Thanks!
Pierre

Hi Pierre,


Thanks for inquiring Aspose.Slides.

I have observed the requirements shared by you and like to share that it seems to be an issue while setting the plot area height. An issue with ID SLIDESNET-33803 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Thank you!


Pierre

Hi Pierre,


I like to share that the issue shared has been resolved in Aspose.Slides for .NET 6.9.0. Please use the following code snippet to observe the values being applied.

PresentationEx pres = new PresentationEx();
SlideEx slide = pres.Slides[0];
ChartEx chart = slide.Shapes.AddChart(ChartTypeEx.ClusteredColumn, 50, 50, 500, 400);
//set plot area
chart.PlotArea.Height = 0.5f; // chart.Heigh * 0.5 = 400 * 0.5 = 200
chart.PlotArea.Width = 0.5f; // Chart.Width * 0.5 = 500 * 0.5 = 250
chart.PlotArea.X = 0.25f; // chart.X = 500 * 0.25 = 125
chart.PlotArea.Y = 0.25f; // chart.Y = 400 * 0.25 = 100
pres.Write(“D:\Aspose Data\result.pptx”);

Many Thanks,

The issues you have found earlier (filed as SLIDESNET-33803) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(3)