chart.mod 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <!--
  2. * This file is part of the LibreOffice project.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. *
  8. * This file incorporates work covered by the following license notice:
  9. *
  10. * Licensed to the Apache Software Foundation (ASF) under one or more
  11. * contributor license agreements. See the NOTICE file distributed
  12. * with this work for additional information regarding copyright
  13. * ownership. The ASF licenses this file to you under the Apache
  14. * License, Version 2.0 (the "License"); you may not use this file
  15. * except in compliance with the License. You may obtain a copy of
  16. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. -->
  18. <!ENTITY % chart-class "(line|area|circle|ring|scatter|radar|bar|stock|add-in)">
  19. <!ENTITY % chart-solid-type "(cuboid|cylinder|cone|pyramid)">
  20. <!-- Chart element -->
  21. <!ELEMENT chart:chart ( chart:title?, chart:subtitle?, chart:legend?,
  22. chart:plot-area,
  23. table:table? )>
  24. <!ATTLIST chart:chart
  25. chart:class %chart-class; #REQUIRED
  26. chart:add-in-name %string; #IMPLIED
  27. chart:table-number-list %string; #IMPLIED
  28. draw:name %string; #IMPLIED
  29. %draw-position;
  30. %draw-size;
  31. %draw-style-name;
  32. chart:column-mapping %string; #IMPLIED
  33. chart:row-mapping %string; #IMPLIED
  34. chart:style-name %styleName; #IMPLIED>
  35. <!ATTLIST chart:chart %presentation-class; >
  36. <!ATTLIST chart:chart %zindex;>
  37. <!ATTLIST chart:chart %draw-end-position; >
  38. <!ATTLIST chart:chart draw:id %draw-shape-id; >
  39. <!ATTLIST chart:chart draw:layer %layerName; #IMPLIED>
  40. <!ATTLIST style:properties
  41. chart:scale-text %boolean; "true"
  42. chart:stock-updown-bars %boolean; "false"
  43. chart:stock-with-volume %boolean; "false"
  44. chart:three-dimensional %boolean; "false"
  45. chart:deep %boolean; "false"
  46. chart:lines %boolean; "false"
  47. chart:percentage %boolean; "false"
  48. chart:solid-type %chart-solid-type; "cuboid"
  49. chart:splines %nonNegativeInteger; "0"
  50. chart:stacked %boolean; "false"
  51. chart:symbol %integer; "-1"
  52. chart:vertical %boolean; "false"
  53. chart:lines-used %nonNegativeInteger; "0"
  54. chart:connect-bars %boolean; "false"
  55. chart:spline-order %nonNegativeInteger; "2"
  56. chart:spline-resolution %nonNegativeInteger; "20"
  57. chart:pie-offset %nonNegativeInteger; "0">
  58. <!-- Main/Sub Title -->
  59. <!-- the cell-address attribute is currently not supported for titles -->
  60. <!ELEMENT chart:title (text:p)?>
  61. <!ATTLIST chart:title
  62. table:cell-range %cell-address; #IMPLIED
  63. svg:x %coordinate; #IMPLIED
  64. svg:y %coordinate; #IMPLIED
  65. chart:style-name %styleName; #IMPLIED >
  66. <!ELEMENT chart:subtitle (text:p)?>
  67. <!ATTLIST chart:subtitle
  68. table:cell-range %cell-address; #IMPLIED
  69. svg:x %coordinate; #IMPLIED
  70. svg:y %coordinate; #IMPLIED
  71. chart:style-name %styleName; #IMPLIED >
  72. <!-- you must specify either a legend-position or both, x and y coordinates -->
  73. <!ELEMENT chart:legend EMPTY>
  74. <!ATTLIST chart:legend
  75. chart:legend-position (top|left|bottom|right) "right"
  76. svg:x %coordinate; #IMPLIED
  77. svg:y %coordinate; #IMPLIED
  78. chart:style-name %styleName; #IMPLIED >
  79. <!-- Plot-Area specification -->
  80. <!ELEMENT chart:plot-area (dr3d:light*,
  81. chart:axis*,
  82. chart:categories?,
  83. chart:series*,
  84. chart:stock-gain-marker?,
  85. chart:stock-loss-marker?,
  86. chart:stock-range-line?,
  87. chart:wall?,
  88. chart:floor?) >
  89. <!ATTLIST chart:plot-area
  90. svg:x %coordinate; #IMPLIED
  91. svg:y %coordinate; #IMPLIED
  92. svg:width %length; #IMPLIED
  93. svg:height %length; #IMPLIED
  94. chart:style-name %styleName; #IMPLIED
  95. table:cell-range-address %cell-range-address; #IMPLIED
  96. chart:table-number-list %string; #IMPLIED
  97. chart:data-source-has-labels (none|row|column|both) "none" >
  98. <!-- 3d scene attributes on plot-area -->
  99. <!ATTLIST chart:plot-area
  100. dr3d:vrp %vector3D; #IMPLIED
  101. dr3d:vpn %vector3D; #IMPLIED
  102. dr3d:vup %vector3D; #IMPLIED
  103. dr3d:projection (parallel|perspective) #IMPLIED
  104. dr3d:transform CDATA #IMPLIED
  105. dr3d:distance %length; #IMPLIED
  106. dr3d:focal-length %length; #IMPLIED
  107. dr3d:shadow-slant %nonNegativeInteger; #IMPLIED
  108. dr3d:shade-mode (flat|phong|gouraud|draft) #IMPLIED
  109. dr3d:ambient-color %color; #IMPLIED
  110. dr3d:lighting-mode %boolean; #IMPLIED >
  111. <!ATTLIST style:properties
  112. chart:series-source (columns|rows) "columns" >
  113. <!ELEMENT chart:wall EMPTY>
  114. <!ATTLIST chart:wall
  115. svg:width %length; #IMPLIED
  116. chart:style-name %styleName; #IMPLIED >
  117. <!ELEMENT chart:floor EMPTY>
  118. <!ATTLIST chart:floor
  119. svg:width %length; #IMPLIED
  120. chart:style-name %styleName; #IMPLIED >
  121. <!-- Stock chart elements -->
  122. <!ELEMENT chart:stock-gain-marker EMPTY>
  123. <!ATTLIST chart:stock-gain-marker
  124. chart:style-name %styleName; #IMPLIED >
  125. <!ELEMENT chart:stock-loss-marker EMPTY>
  126. <!ATTLIST chart:stock-loss-marker
  127. chart:style-name %styleName; #IMPLIED >
  128. <!ELEMENT chart:stock-range-line EMPTY>
  129. <!ATTLIST chart:stock-range-line
  130. chart:style-name %styleName; #IMPLIED >
  131. <!-- Axis -->
  132. <!ELEMENT chart:axis (chart:title?, chart:grid*)>
  133. <!ATTLIST chart:axis
  134. chart:class (category|value|series|domain) #REQUIRED
  135. chart:name %string; #IMPLIED
  136. chart:style-name %styleName; #IMPLIED >
  137. <!ATTLIST style:properties
  138. chart:tick-marks-major-inner %boolean; "false"
  139. chart:tick-marks-major-outer %boolean; "true"
  140. chart:tick-marks-minor-inner %boolean; "false"
  141. chart:tick-marks-minor-outer %boolean; "false"
  142. chart:logarithmic %boolean; "false"
  143. chart:maximum %float; #IMPLIED
  144. chart:minimum %float; #IMPLIED
  145. chart:origin %float; #IMPLIED
  146. chart:interval-major %float; #IMPLIED
  147. chart:interval-minor %float; #IMPLIED
  148. chart:gap-width %integer; #IMPLIED
  149. chart:overlap %integer; #IMPLIED
  150. text:line-break %boolean; "true"
  151. chart:display-label %boolean; "true"
  152. chart:label-arrangement (side-by-side|stagger-even|stagger-odd) "side-by-side"
  153. chart:text-overlap %boolean; "false"
  154. chart:visible %boolean; "true"
  155. chart:link-data-style-to-source %boolean; "true" >
  156. <!ELEMENT chart:grid EMPTY>
  157. <!ATTLIST chart:grid
  158. chart:class (major|minor) "major"
  159. chart:style-name %styleName; #IMPLIED >
  160. <!ELEMENT chart:categories EMPTY>
  161. <!ATTLIST chart:categories
  162. table:cell-range-address %cell-range-address; #IMPLIED >
  163. <!--
  164. each series element must have a cell-range-address element that points
  165. to the underlying table data.
  166. Impl. Note: Internally all href elements are merged to one table range
  167. that represents the data for the whole chart
  168. -->
  169. <!ELEMENT chart:series ( chart:domain*,
  170. chart:mean-value?,
  171. chart:regression-curve?,
  172. chart:error-indicator?,
  173. chart:data-point* )>
  174. <!ATTLIST chart:series
  175. chart:values-cell-range-address %cell-range-address; #IMPLIED
  176. chart:label-cell-address %cell-address; #IMPLIED
  177. chart:class %chart-class; #IMPLIED
  178. chart:attached-axis %string; #IMPLIED
  179. chart:style-name %styleName; #IMPLIED >
  180. <!ELEMENT chart:domain EMPTY>
  181. <!ATTLIST chart:domain
  182. table:cell-range-address %cell-range-address; #IMPLIED >
  183. <!ELEMENT chart:data-point EMPTY>
  184. <!ATTLIST chart:data-point
  185. chart:repeated %nonNegativeInteger; #IMPLIED
  186. chart:style-name %styleName; #IMPLIED >
  187. <!-- statistical properties -->
  188. <!ELEMENT chart:mean-value EMPTY>
  189. <!ELEMENT chart:regression-curve EMPTY >
  190. <!ELEMENT chart:error-indicator EMPTY >
  191. <!ATTLIST chart:mean-value chart:style-name %styleName; #IMPLIED >
  192. <!ATTLIST chart:regression-curve chart:style-name %styleName; #IMPLIED >
  193. <!ATTLIST chart:error-indicator chart:style-name %styleName; #IMPLIED >
  194. <!ATTLIST style:properties
  195. chart:mean-value %boolean; #IMPLIED
  196. chart:error-category (none|variance|standard-deviation|percentage|error-margin|constant) "none"
  197. chart:error-percentage %float; #IMPLIED
  198. chart:error-margin %float; #IMPLIED
  199. chart:error-lower-limit %float; #IMPLIED
  200. chart:error-upper-limit %float; #IMPLIED
  201. chart:error-upper-indicator %boolean; #IMPLIED
  202. chart:error-lower-indicator %boolean; #IMPLIED
  203. chart:regression-type (none|linear|logarithmic|exponential|power) "none" >
  204. <!-- data label properties -->
  205. <!ATTLIST style:properties
  206. chart:data-label-number (none|value|percentage) "none"
  207. chart:data-label-text %boolean; "false"
  208. chart:data-label-symbol %boolean; "false" >
  209. <!-- general text properties -->
  210. <!ATTLIST style:properties
  211. text:rotation-angle %integer; "0" >
  212. <!-- symbol properties -->
  213. <!ATTLIST style:properties
  214. chart:symbol-width %nonNegativeLength; #IMPLIED
  215. chart:symbol-height %nonNegativeLength; #IMPLIED
  216. chart:symbol-image-name %string; #IMPLIED >