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