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 186<br />

Wall and Floor<br />

The chart wall is the background of the coordinate system where the data is plotted. Two<br />

chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand<br />

or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also<br />

have a floor.<br />

The Diagram object provides the properties Wall and Floor:<br />

Wall (Object)<br />

background wall of the coordinate system (supports<br />

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

service)<br />

Floor (Object)<br />

floor panel of coordinate system (only for 3D charts, supports<br />

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

service)<br />

The specified objects support the com.sun.star.chart.ChartArea service, which provides the<br />

usual fill and line properties (<br />

and<br />

com.sun.star.drawing.FillProperties<br />

com.sun.star.drawing.LineProperties<br />

services, refer to Drawings and Presentations).<br />

The following example shows how graphics (named Sky) already contained in<br />

<strong>OpenOffice</strong>.<strong>org</strong> can be used as a background for a chart. The wall is set to be blue.<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 />

Rect.X = 8000<br />

Rect.Y = 1000<br />

Rect.Width = 10000<br />

Rect.Height = 7000<br />

RangeAddress(0).Sheet = 0<br />

RangeAddress(0).StartColumn = 0<br />

RangeAddress(0).StartRow = 0<br />

RangeAddress(0).EndColumn = 2<br />

RangeAddress(0).EndRow = 12

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

Saved successfully!

Ooh no, something went wrong!