Difference between revisions of "Documentation/BASIC Guide/Chart Types"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Bar Charts)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation/NeedsRework}}
 
 
{{Documentation/BASICGuideTOC/v2
 
{{Documentation/BASICGuideTOC/v2
 
|ShowPrevNext=block
 
|ShowPrevNext=block
Line 8: Line 7:
 
}}
 
}}
 
{{DISPLAYTITLE:Chart Types}}
 
{{DISPLAYTITLE:Chart Types}}
 
+
__NOTOC__
 
== Line Charts ==
 
== Line Charts ==
  
Line charts (Service <tt>com.sun.star.chart.LineDiagram</tt>) support one X-axis, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<tt>com.sun.star.chart.Dim3Ddiagram</tt> service). The lines can be stacked (<tt>com.sun.star.chart.StackableDiagram</tt>).
+
Line charts (<idl>com.sun.star.chart.LineDiagram</idl>) support two X-axes, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<idl>com.sun.star.chart.Dim3Ddiagram</idl> service). The lines can be stacked (<idl>com.sun.star.chart.StackableDiagram</idl>).
  
 
Line charts provide the following properties:
 
Line charts provide the following properties:
  
;<tt>SymbolType (const)</tt>:symbol for displaying the data points (constant in accordance with <tt>com.sun.star.chart.ChartSymbolType</tt> ).
+
;<tt>SymbolType (const)</tt>:symbol for displaying the data points (constant in accordance with <idl>com.sun.star.chart.ChartSymbolType</idl>)
;<tt>SymbolSize (Long)</tt>:size of symbol for displaying the data points in 100ths of a millimeter.
+
;<tt>SymbolSize (Long)</tt>:size of symbol for displaying the data points in 100ths of a millimeter
;<tt>SymbolBitmapURL (String)</tt>:file name of graphics for displaying the data points.
+
;<tt>SymbolBitmapURL (String)</tt>:file name of graphics for displaying the data points
;<tt>Lines (Boolean)</tt>:links the data points by means of lines.
+
;<tt>Lines (Boolean)</tt>:links the data points by means of lines
;<tt>SplineType (Long)</tt>:spline function for smoothing the lines (0: no spline function, 1: cubic splines, 2: B splines).
+
;<tt>SplineType (Long)</tt>:spline function for smoothing the lines (0: no spline function, 1: cubic splines, 2: B splines)
;<tt>SplineOrder (Long)</tt>:polynomial weight for splines (only for B splines).
+
;<tt>SplineOrder (Long)</tt>:polynomial weight for splines (only for B splines)
;<tt>SplineResolution (Long)</tt>:number of support points for spline calculation.
+
;<tt>SplineResolution (Long)</tt>:number of support points for spline calculation
  
 
== Area Charts ==
 
== Area Charts ==
  
Area charts (<tt>com.sun.star.chart.AreaDiagram</tt> service) support one X-axis, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<tt>com.sun.star.chart.Dim3Ddiagram</tt> service). The areas can be stacked (<tt>com.sun.star.chart.StackableDiagram</tt>).
+
Area charts (<idl>com.sun.star.chart.AreaDiagram</idl> service) support two X-axes, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<idl>com.sun.star.chart.Dim3Ddiagram</idl> service). The areas can be stacked (<idl>com.sun.star.chart.StackableDiagram</idl>).
  
 
== Bar Charts ==
 
== Bar Charts ==
  
Bar charts (Service <tt>com.sun.star.chart.BarDiagram</tt>) support two X-axis, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<tt>com.sun.star.chart.Dim3Ddiagram</tt> service). The bars can be stacked (<tt>com.sun.star.chart.StackableDiagram</tt>).
+
Bar charts (<idl>com.sun.star.chart.BarDiagram</idl>) support two X-axes, two Y-axes and one Z-axis. They can be displayed as 2D or 3D graphics (<idl>com.sun.star.chart.Dim3Ddiagram</idl> service). The bars can be stacked (<idl>com.sun.star.chart.StackableDiagram</idl>).
  
 
They provide the following properties:
 
They provide the following properties:
  
;<tt>Vertical (Boolean)</tt>:displays the bars vertically, otherwise they are depicted horizontally.
+
;<tt>Vertical (Boolean)</tt>:displays the bars vertically, otherwise they are depicted horizontally
;<tt>Deep (Boolean)</tt>:in 3D viewing mode, positions the bars behind one another rather than next to one another.
+
;<tt>Deep (Boolean)</tt>:in 3D viewing mode, positions the bars behind one another rather than next to one another
;<tt>StackedBarsConnected (Boolean)</tt>:links the associated bars in a stacked chart by means of lines (only available with horizontal charts).
+
;<tt>StackedBarsConnected (Boolean)</tt>:links the associated bars in a stacked chart by means of lines (only available with horizontal charts)
;<tt>NumberOfLines (Long)</tt>:number of lines to be displayed in a stacked chart as lines rather than bars.
+
;<tt>NumberOfLines (Long)</tt>:number of lines to be displayed in a stacked chart as lines rather than bars
;<tt>GroupBarsPerAxis (Boolean)</tt>:displays bars attached to different axes behind or next to each other. (available since OpenOffice.org 2.4)
+
;<tt>GroupBarsPerAxis (Boolean)</tt>:displays bars attached to different axes behind or next to each other (available since OpenOffice.org 2.4)
  
 
== Pie Charts ==
 
== Pie Charts ==
  
Pie charts (<tt>com.sun.star.chart.PieDiagram</tt> service) do not contain any axes and cannot be stacked. They can be displayed as 2D or 3D graphics (<tt>com.sun.star.chart.Dim3Ddiagram</tt> service).
+
Pie charts (<idl>com.sun.star.chart.PieDiagram</idl>) do not contain any axes and cannot be stacked. They can be displayed as 2D or 3D graphics (<idl>com.sun.star.chart.Dim3DDiagram</idl> service).
 +
 
 +
The following properties are provided for pie and donut charts with the <tt>Diagram</tt> object:
 +
 
 +
;<tt>StartingAngle (Long)</tt>:angle of the first piece of a pie in degrees (available since OpenOffice.org 3.0)
  
 +
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Chart Types}}
 
{{PDL1}}
 
{{PDL1}}

Latest revision as of 11:34, 12 December 2008


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 (com.sun.star.chart.BarDiagram) 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 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) do not contain any axes and cannot be stacked. They can be displayed as 2D or 3D graphics (com.sun.star.chart.Dim3DDiagram service).

The following properties are provided for pie and donut charts with 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