![]() When working with 3D charts, a Z-axis is also sometimes provided. In the simplest scenario, these are the X and Y-axes. FillColor = RGB (00, 132, 209 ) AxesĪpache OpenOffice recognizes five different axes that can be used in a chart. The following example shows how graphics (named Sky) already contained in Apache OpenOffice can be used as a background for a chart. The specified objects support the .ChartArea service, which provides the usual fill and line properties ( .FillProperties and .LineProperties services, refer to Drawings and Presentations). Wall (Object) background wall of the coordinate system (supports .ChartArea service)įloor (Object) floor panel of coordinate system (only for 3D charts, supports .ChartArea service) The Diagram object provides the properties Wall and Floor: This depends on the rotation of the chart. ![]() Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. ![]() The chart wall is the background of the coordinate system where the data is plotted. .ChartTwoAxisYSupplierĭifferent services are supported depending on the chart type (see.The Chart object provides the property Diagram which forms the coordinate system with axes and grids, where the data finally is displayed:ĭiagram (Object) object forming the coordinate system where the data is plotted. The associated .ChartArea service supports line and fill properties. The background of a chart covers its complete area, including the area under the title, subtitle and legend. The Chart object provides the property Area to format the background:Īrea (Object) background area of the chart (supports .ChartArea service) FillColor = RGB ( 210, 210, 210 )Įvery chart has a background area. addNewByName ( "M圜hart", Rect, RangeAddress ( ), True, True )Ĭhart = Charts. Rectangle Dim RangeAddress ( 0 ) As New com. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.ĭim Doc As Object Dim Charts As Object Dim Chart as Object Dim Rect As New com. The following example creates a chart with a title "Main Title String", a subtitle "Subtitle String" and a legend. The legend ( .ChartLegend) contains the following additional property:Īlignment (Enum) position at which the legend appears (value of type .ChartLegendPosition) TextRotation (Long) angle of rotation of text in 100ths of a degree String (String) text which to be displayed as the title or subtitle As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.įill and line properties ( .FillProperties and .LineProperties services) as well as the character properties ( .CharacterProperties service) are provided for further formatting of the elements.Ĭom. contains not only the listed formatting properties, but also two other properties: This allows to determine the position and size of the elements using the Position and Size properties. Legend (Object) object with detailed information about the legend (supports the .ChartLegend service)īoth services .ChartTitle and .ChartLegend do support the service .Shape. Subtitle (Object) object with detailed information about the chart subtitle (supports the .ChartTitle service) HasSubTitle(Boolean) activates the subtitle ![]() Title (Object) object with detailed information about the chart title (supports the .ChartTitle service) ![]() HasMainTitle (Boolean) activates the title The Chart object provides the following properties for administrating these elements: Title, subtitle and legend are basic elements provided for every chart. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes. The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |