Difference between revisions of "Documentation/DevGuide/Charts/Pie Charts"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Charts)
m (Robot: Changing Category:Documentation/Developers Guide/Charts)
Line 21: Line 21:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Charts]]
+
[[Category:Documentation/Developer's Guide/Charts]]

Revision as of 07:43, 5 June 2008



Pie charts support the offset of pie segments with the service com.sun.star.chart.ChartPieSegmentProperties that has a property SegmentOffset to drag pie slices radially from the center up to an amount equal to the radius of the pie. This property reflects a percentage, that is, values can go from 0 to 100.

 // ...
 
 // drag the fourth segment 50% out
 aPointProp = maDiagram.getDataPointProperties(3, 0)
 aPointProp.setPropertyValue("SegmentOffset", 50)

Note that the SegmentOffset property is not available for donut charts and three-dimensional pie charts.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools