Hello.
I’ve seen that when you use LegendPositionType.Corner to position the legend of the chart, there is a problem. The legend’s bottom is the same to the chart’s top.
(See attached image)
The same happens when I place the legend to the Top-Right position with Excel (I don’t know if I need installing updates for Office).
To solve this, I’ve tried placing the chart legend in a custom position with Aspose Cells after setting the position type to LegendPositionType.Right :
lChart.Legend.Y = 0;
lChart.Legend.X = lChart.PlotArea.X + lChart.PlotArea.Width;
However, both lChart.PlotArea.X and lChart.PlotArea.Width are zero and lChart.Legend.Y is zero already, before I even set it (while the legend is not on the top of the chart)!
Is the a way to position the legend on the top-right of the chart?
I could do it if I knew what were the dimensions of the Plot Area, but I can’t get this information.
Thanks in advance,
Kostas