If I create a Calc chart, I can move the actual part that shows the graph itself by right clicking in the Wall area and selecting “Position and Size”. However, I can’t work out how to do this in a macro as the Wall object in the Diagram object appears to lack Position and Size properties. The Diagram itself has Position and Size, but this object seems to refer to an area that also includes the axis labels, which is not what I want.
Background: I have a set of several charts that show the movement of a quantity over varous time periods - a day, week, month, etc. - and these are stacked on top of one another to save space, with a set of push buttons to bring the required chart to the front. If I change the size or position of one of these charts, I would like to be able to run a macro to change all the others so they match. And it seems this would work just fine by setting the Chart and the Diagram position and size if all of the charts labels were the same physical width because the chart wall is then moved so the left-hand edge of the Y-axis labels are aligned to the left-hand edge of the Diagram. However, my charts may have different labels, say 1%, 2%, 3%… for one and -30%, -20%, -10%… for another. Making the Diagram positions and sizes the same in this case fails to align the left hand edge of the Walls with each other.
Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL