Hello,
I have added a chart and I’m trying to get the PlotArea position and dimension of that chart, but all the values are NaN.
I’m running the following code:
PresentationEx pres = new PresentationEx();
SlideEx slide = pres.Slides[0];
ChartEx chart = slide.Shapes.AddChart(ChartTypeEx.PercentsStackedColumn, 50, 50, 500, 400);
float x = chart.PlotArea.X;
float y = chart.PlotArea.Y;
float w = chart.PlotArea.Width;
float h = chart.PlotArea.Height;
Debugging the above variables results in NaN values on all, as shown in the attached screenshot.
I need a way to get these PlotArea properties from the chart.
Thank you!
Pierre