21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Structure of Charts 187<br />

Axes<br />

Doc = StarDesktop.CurrentComponent<br />

Charts = Doc.Sheets(0).Charts<br />

Charts.addNewByName("MyChart", Rect, RangeAddress(), True, True)<br />

Chart = Charts.getByName("MyChart").EmbeddedObject<br />

Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP<br />

Chart.Area.FillBitmapName = "Sky"<br />

Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT<br />

Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID<br />

Chart.Diagram.Wall.FillColor = RGB(00,132,209)<br />

<strong>OpenOffice</strong>.<strong>org</strong> recognizes five different axes that can be used in a chart. In the simplest<br />

scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also<br />

sometimes provided. For charts in which the values of the various rows of data deviate<br />

significantly from one another, <strong>OpenOffice</strong>.<strong>org</strong> provides a second X and Y-axis for second<br />

scaling operations.<br />

The Diagram object provides the following properties to access the axes:<br />

HasXAxis (Boolean)<br />

activates the X-axis<br />

XAxis (Object)<br />

object with detailed information about the X-axis (supports<br />

com.sun.star.chart.ChartAxis<br />

service)<br />

HasXAxisDescription (Boolean)<br />

activates the labels for the interval marks for the X-axis<br />

HasYAxis (Boolean)<br />

activates the Y-axis<br />

YAxis (Object)<br />

object with detailed information about the Y-axis (supports<br />

com.sun.star.chart.ChartAxis<br />

service)<br />

HasYAxisDescription (Boolean)<br />

activates the labels for the interval marks for the Y-axis<br />

HasZAxis (Boolean)<br />

activates the Z-axis<br />

ZAxis (Object)<br />

object with detailed information about the Z-axis (supports

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!