OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
The Structure of Charts 193<br />
activates title of Z-axis<br />
ZAxisTitle (Object)<br />
object with detailed information about title of the Z-axis (supports<br />
com.sun.star.chart.ChartTitle<br />
service)<br />
and for the secondary axes (available since <strong>OpenOffice</strong>.<strong>org</strong> 3.0):<br />
HasSecondaryXAxisTitle (Boolean)<br />
activates title of the secondary X-axis.<br />
SecondXAxisTitle (Object)<br />
object with detailed information about title of the secondary X-axis (supports<br />
com.sun.star.chart.ChartTitle<br />
service)<br />
HasSecondaryYAxisTitle (Boolean)<br />
activates title of the secondary Y-axis.<br />
SecondYAxisTitle (Object)<br />
object with detailed information about title of the secondary Y-axis (supports<br />
com.sun.star.chart.ChartTitle<br />
service)<br />
The objects for formatting the axes title are based on the<br />
com.sun.star.chart.ChartTitle<br />
service, which is also used for chart titles.<br />
Example<br />
The following example creates a line chart. The color for the rear wall of the chart is set to<br />
white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of<br />
the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the<br />
chart is retained even if the values are changed. The X-axis points in reverse direction from<br />
right to left. And a title for the X-axis was added.<br />
Dim Doc As Object<br />
Dim Charts As Object<br />
Dim Chart as Object<br />
Dim Rect As New com.sun.star.awt.Rectangle<br />
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress<br />
Doc = StarDesktop.CurrentComponent<br />
Charts = Doc.Sheets(0).Charts