Chart Types

From Apache OpenOffice Wiki
Jump to: navigation, search


Line Charts

Line charts (com.sun.star.chart.LineDiagram) support two X-axes, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (com.sun.star.chart.Dim3Ddiagram service). The lines can be stacked (com.sun.star.chart.StackableDiagram).

Line charts provide the following properties:

SymbolType (const)
symbol for displaying the data points (constant in accordance with com.sun.star.chart.ChartSymbolType ).
SymbolSize (Long)
size of symbol for displaying the data points in 100ths of a millimeter.
SymbolBitmapURL (String)
file name of graphics for displaying the data points.
Lines (Boolean)
links the data points by means of lines.
SplineType (Long)
spline function for smoothing the lines (0: no spline function, 1: cubic splines, 2: B splines).
SplineOrder (Long)
polynomial weight for splines (only for B splines).
SplineResolution (Long)
number of support points for spline calculation.

Area Charts

Area charts (com.sun.star.chart.AreaDiagram service) support two X-axes, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (com.sun.star.chart.Dim3Ddiagram service). The areas can be stacked (com.sun.star.chart.StackableDiagram).

Bar Charts

Bar charts (Service com.sun.star.chart.BarDiagram) support two X-axis, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (com.sun.star.chart.Dim3Ddiagram service). The bars can be stacked (com.sun.star.chart.StackableDiagram).

They provide the following properties:

Vertical (Boolean)
displays the bars vertically, otherwise they are depicted horizontally.
Deep (Boolean)
in 3D viewing mode, positions the bars behind one another rather than next to one another.
StackedBarsConnected (Boolean)
links the associated bars in a stacked chart by means of lines (only available with horizontal charts).
NumberOfLines (Long)
number of lines to be displayed in a stacked chart as lines rather than bars.
GroupBarsPerAxis (Boolean)
displays bars attached to different axes behind or next to each other. (available since OpenOffice.org 2.4)

Pie Charts

Pie charts (com.sun.star.chart.PieDiagram service) do not contain any axes and cannot be stacked. They can be displayed as 2D or 3D graphics (com.sun.star.chart.Dim3DDiagram service).

Following properties are provided for pie and donut charts at the Diagram object:

StartingAngle (Long)
angle of the first piece of a pie in degrees. (available since OpenOffice.org 3.0)
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools