ChartTypeDefinition_2.xsd 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: vgs
  5. (C) Copyright IBM Corp. 2013
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--After making changes to this file you must run tools/generateDTDs.bat to generate ChartTypeDefinition.dtd, and deliver changes to both files-->
  9. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ibm.com/xmlns/prod/ba/visBundle/chartTypeDefinition.2/" xmlns:tns="http://www.ibm.com/xmlns/prod/ba/visBundle/chartTypeDefinition.2/" targetNamespace="http://www.ibm.com/xmlns/prod/ba/visBundle/chartTypeDefinition.2/" elementFormDefault="qualified" attributeFormDefault="unqualified">
  10. <xs:element name="visualizationDefinition">
  11. <xs:complexType>
  12. <xs:all>
  13. <xs:element name="slots" minOccurs="0">
  14. <xs:annotation>
  15. <xs:documentation>Defines distinct data elements that are used in a visualization and can be reused in multiple data sets.</xs:documentation>
  16. </xs:annotation>
  17. <xs:complexType>
  18. <xs:sequence>
  19. <xs:choice maxOccurs="unbounded">
  20. <xs:element ref="categorySlot"/>
  21. <xs:element ref="valueSlot"/>
  22. <xs:element name="slotGroup">
  23. <xs:complexType>
  24. <xs:all>
  25. <xs:element name="slots">
  26. <xs:annotation>
  27. <xs:appinfo>subtype</xs:appinfo>
  28. </xs:annotation>
  29. <xs:complexType>
  30. <xs:sequence>
  31. <xs:choice maxOccurs="unbounded">
  32. <xs:element ref="categorySlot"/>
  33. <xs:element ref="valueSlot"/>
  34. </xs:choice>
  35. </xs:sequence>
  36. </xs:complexType>
  37. </xs:element>
  38. <xs:element ref="label" minOccurs="0"/>
  39. <xs:element ref="tooltip" minOccurs="0"/>
  40. </xs:all>
  41. <xs:attribute name="name" type="xs:string" use="required"/>
  42. </xs:complexType>
  43. </xs:element>
  44. </xs:choice>
  45. </xs:sequence>
  46. </xs:complexType>
  47. </xs:element>
  48. <xs:element name="dataSets" minOccurs="0">
  49. <xs:complexType>
  50. <xs:sequence>
  51. <xs:element name="dataSet" maxOccurs="unbounded">
  52. <xs:annotation>
  53. <xs:documentation>Describes a set of data that is used in a visualization. Each 'dataSet' can be mapped to a different query in a report.</xs:documentation>
  54. </xs:annotation>
  55. <xs:complexType>
  56. <xs:all>
  57. <xs:element name="categoryAxes" minOccurs="0">
  58. <xs:annotation>
  59. <xs:documentation>Each 'categoryAxis' defines a set of tuples. Each level in a 'categoryAxis' defines a member of this tuple. The intersection of tuples for each 'categoryAxis' identifies a set of values defined by 'valueAxis'.</xs:documentation>
  60. </xs:annotation>
  61. <xs:complexType>
  62. <xs:sequence>
  63. <xs:element name="categoryAxis" maxOccurs="unbounded">
  64. <xs:complexType>
  65. <xs:all>
  66. <xs:element name="axisStructure">
  67. <xs:complexType>
  68. <xs:choice>
  69. <xs:element ref="set"/>
  70. <xs:element name="nest">
  71. <xs:annotation>
  72. <xs:documentation>Represents the nesting of multiple sets.</xs:documentation>
  73. </xs:annotation>
  74. <xs:complexType>
  75. <xs:sequence>
  76. <xs:element ref="set" minOccurs="2" maxOccurs="unbounded"/>
  77. </xs:sequence>
  78. </xs:complexType>
  79. </xs:element>
  80. <xs:element name="union">
  81. <xs:annotation>
  82. <xs:documentation>Represents the unioning of multiple sets.</xs:documentation>
  83. </xs:annotation>
  84. <xs:complexType>
  85. <xs:sequence>
  86. <xs:element ref="set" minOccurs="2" maxOccurs="unbounded"/>
  87. </xs:sequence>
  88. </xs:complexType>
  89. </xs:element>
  90. </xs:choice>
  91. </xs:complexType>
  92. </xs:element>
  93. <xs:element ref="label" minOccurs="0"/>
  94. <xs:element ref="tooltip" minOccurs="0"/>
  95. </xs:all>
  96. <xs:attribute name="name" type="xs:string" use="required"/>
  97. </xs:complexType>
  98. </xs:element>
  99. </xs:sequence>
  100. </xs:complexType>
  101. </xs:element>
  102. <xs:element name="valueAxis" minOccurs="0">
  103. <xs:annotation>
  104. <xs:documentation>Defines the set of values in the data set that are available at the intersection of category axes.</xs:documentation>
  105. </xs:annotation>
  106. <xs:complexType>
  107. <xs:all>
  108. <xs:element name="valueAxisSet">
  109. <xs:complexType>
  110. <xs:sequence>
  111. <xs:element name="valueAxisValue" maxOccurs="unbounded">
  112. <xs:annotation>
  113. <xs:documentation>References a 'valueSlot' that will be part of 'valueAxis' for the data set.</xs:documentation>
  114. </xs:annotation>
  115. <xs:complexType>
  116. <xs:attribute name="refSlot" type="xs:string" use="required"/>
  117. </xs:complexType>
  118. </xs:element>
  119. </xs:sequence>
  120. </xs:complexType>
  121. </xs:element>
  122. <xs:element ref="label" minOccurs="0"/>
  123. <xs:element ref="tooltip" minOccurs="0"/>
  124. </xs:all>
  125. </xs:complexType>
  126. </xs:element>
  127. <xs:element ref="label" minOccurs="0"/>
  128. <xs:element ref="tooltip" minOccurs="0"/>
  129. </xs:all>
  130. <xs:attribute name="name" type="xs:string" use="required"/>
  131. <xs:attribute name="optionalOverride" type="xs:boolean" default="false">
  132. <xs:annotation>
  133. <xs:documentation>A value of 'true' provides the option to not override the default data set found in a visualization.</xs:documentation>
  134. </xs:annotation>
  135. </xs:attribute>
  136. <xs:attribute name="hasChartElements" type="xs:boolean" default="true">
  137. <xs:annotation>
  138. <xs:documentation>Set this to 'false' if the resulting chart does not have any chart elements that tie back to this data set.
  139. For example the data set is only used as input for statistical calculations which are then displayed on the chart.</xs:documentation>
  140. </xs:annotation>
  141. </xs:attribute>
  142. </xs:complexType>
  143. <xs:unique name="slotRefUniqueness">
  144. <xs:selector xpath=".//tns:set | .//tns:valueAxisValue"/>
  145. <xs:field xpath="@refSlot"/>
  146. </xs:unique>
  147. </xs:element>
  148. </xs:sequence>
  149. </xs:complexType>
  150. <xs:unique name="dataSetUniqueness">
  151. <xs:selector xpath="dataSet"/>
  152. <xs:field xpath="@name"/>
  153. </xs:unique>
  154. </xs:element>
  155. <xs:element ref="properties" minOccurs="0">
  156. <xs:annotation>
  157. <xs:documentation>Visualization properties that can be changed by a report author.</xs:documentation>
  158. </xs:annotation>
  159. </xs:element>
  160. <xs:element ref="label" minOccurs="0"/>
  161. <xs:element ref="description" minOccurs="0"/>
  162. <xs:element ref="tooltip" minOccurs="0"/>
  163. <xs:element name="author" type="TextType" minOccurs="0"/>
  164. <xs:element name="tags" minOccurs="0">
  165. <xs:annotation>
  166. <xs:documentation>A list of tags that can be used when searching for chart types.</xs:documentation>
  167. </xs:annotation>
  168. <xs:complexType>
  169. <xs:sequence>
  170. <xs:element name="tag" minOccurs="0" maxOccurs="unbounded">
  171. <xs:complexType>
  172. <xs:simpleContent>
  173. <xs:extension base="TextType">
  174. <xs:attribute name="ids" type="xs:string"/>
  175. </xs:extension>
  176. </xs:simpleContent>
  177. </xs:complexType>
  178. </xs:element>
  179. </xs:sequence>
  180. </xs:complexType>
  181. </xs:element>
  182. <xs:element name="metadataEntries" minOccurs="0">
  183. <xs:annotation>
  184. <xs:documentation>Reserved.</xs:documentation>
  185. </xs:annotation>
  186. <xs:complexType>
  187. <xs:sequence>
  188. <xs:element name="metadataEntry" maxOccurs="unbounded">
  189. <xs:complexType>
  190. <xs:simpleContent>
  191. <xs:extension base="TextType">
  192. <xs:attribute name="name" type="xs:string" use="required"/>
  193. </xs:extension>
  194. </xs:simpleContent>
  195. </xs:complexType>
  196. </xs:element>
  197. </xs:sequence>
  198. </xs:complexType>
  199. </xs:element>
  200. <xs:element name="sampleData" minOccurs="0">
  201. <xs:annotation>
  202. <xs:documentation>Reserved.</xs:documentation>
  203. </xs:annotation>
  204. <xs:complexType>
  205. <xs:attributeGroup ref="locationGroup"/>
  206. </xs:complexType>
  207. </xs:element>
  208. </xs:all>
  209. <xs:attribute name="name" type="xs:string" use="required"/>
  210. <xs:attribute name="adapter" type="xs:string" use="required"/>
  211. <xs:attribute name="definitionVersion" type="xs:positiveInteger" use="required"/>
  212. <xs:attribute name="supportsDefaultDataFormatting" type="xs:boolean" default="true">
  213. <xs:annotation>
  214. <xs:documentation>If 'true', a report author can specify the data formatting.
  215. Charts that provide their own data formatting or do not require default data formatting (e.g. boxplot, waterfall with pre-processed data) should set this property to 'false'.</xs:documentation>
  216. </xs:annotation>
  217. </xs:attribute>
  218. <xs:attribute name="outputType" default="all">
  219. <xs:annotation>
  220. <xs:documentation>Static visualizations are produced at runtime on the server (for regular or Active Reports) and do not support client-side filtering. Interactive visualizations can be used in Active Reports and be re-rendered based on Active Report filter conditions. If your visualization supports both static and interactive output, set 'outputType' to 'all'.</xs:documentation>
  221. </xs:annotation>
  222. <xs:simpleType>
  223. <xs:restriction base="xs:string">
  224. <xs:enumeration value="all"/>
  225. <xs:enumeration value="static"/>
  226. <xs:enumeration value="interactive"/>
  227. </xs:restriction>
  228. </xs:simpleType>
  229. </xs:attribute>
  230. <xs:attribute name="isValid" type="xs:boolean" default="true"/>
  231. </xs:complexType>
  232. <xs:unique name="categorySlotUniqueness">
  233. <xs:selector xpath=".//tns:categorySlot"/>
  234. <xs:field xpath="@name"/>
  235. </xs:unique>
  236. <xs:key name="categorySlotKey">
  237. <xs:selector xpath=".//tns:categorySlot"/>
  238. <xs:field xpath="@name"/>
  239. </xs:key>
  240. <xs:keyref name="categegorySlotReference" refer="tns:categorySlotKey">
  241. <xs:selector xpath=".//tns:set"/>
  242. <xs:field xpath="@refSlot"/>
  243. </xs:keyref>
  244. <xs:unique name="valueSlotUniqueness">
  245. <xs:selector xpath=".//tns:valueSlot"/>
  246. <xs:field xpath="@name"/>
  247. </xs:unique>
  248. <xs:key name="valueSlotKey">
  249. <xs:selector xpath=".//tns:valueSlot"/>
  250. <xs:field xpath="@name"/>
  251. </xs:key>
  252. <xs:keyref name="valueSlotReference" refer="tns:valueSlotKey">
  253. <xs:selector xpath=".//tns:valueAxisValue"/>
  254. <xs:field xpath="@refSlot"/>
  255. </xs:keyref>
  256. </xs:element>
  257. <xs:group name="PropertyTypes">
  258. <xs:choice>
  259. <xs:element name="stringProperty">
  260. <xs:complexType>
  261. <xs:all>
  262. <xs:element name="defaultString" type="TextType" minOccurs="0"/>
  263. <xs:element ref="label" minOccurs="0"/>
  264. <xs:element ref="description" minOccurs="0"/>
  265. <xs:element ref="tooltip" minOccurs="0"/>
  266. </xs:all>
  267. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  268. </xs:complexType>
  269. </xs:element>
  270. <xs:element name="integerProperty">
  271. <xs:complexType>
  272. <xs:all>
  273. <xs:element ref="label" minOccurs="0"/>
  274. <xs:element ref="description" minOccurs="0"/>
  275. <xs:element ref="tooltip" minOccurs="0"/>
  276. <xs:element name="defaultInteger" type="xs:integer" minOccurs="0"/>
  277. </xs:all>
  278. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  279. <xs:attribute name="min" type="xs:integer"/>
  280. <xs:attribute name="max" type="xs:integer"/>
  281. </xs:complexType>
  282. </xs:element>
  283. <xs:element name="decimalProperty">
  284. <xs:complexType>
  285. <xs:all>
  286. <xs:element ref="label" minOccurs="0"/>
  287. <xs:element ref="description" minOccurs="0"/>
  288. <xs:element ref="tooltip" minOccurs="0"/>
  289. <xs:element name="defaultDecimal" type="xs:decimal" minOccurs="0"/>
  290. </xs:all>
  291. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  292. <xs:attribute name="min" type="xs:decimal"/>
  293. <xs:attribute name="max" type="xs:decimal"/>
  294. </xs:complexType>
  295. </xs:element>
  296. <xs:element name="booleanProperty">
  297. <xs:complexType>
  298. <xs:all>
  299. <xs:element ref="label" minOccurs="0"/>
  300. <xs:element ref="description" minOccurs="0"/>
  301. <xs:element ref="tooltip" minOccurs="0"/>
  302. <xs:element name="defaultBoolean" type="xs:boolean" minOccurs="0"/>
  303. </xs:all>
  304. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  305. </xs:complexType>
  306. </xs:element>
  307. <xs:element name="enumProperty">
  308. <xs:annotation>
  309. <xs:documentation>Use an 'enumProperty' to denote a choice from a fixed set of values.</xs:documentation>
  310. </xs:annotation>
  311. <xs:complexType>
  312. <xs:all>
  313. <xs:element name="enumValues">
  314. <xs:complexType>
  315. <xs:sequence>
  316. <xs:element name="enumValue" maxOccurs="unbounded">
  317. <xs:complexType>
  318. <xs:all>
  319. <xs:element ref="label" minOccurs="0"/>
  320. <xs:element ref="description" minOccurs="0"/>
  321. <xs:element ref="tooltip" minOccurs="0"/>
  322. </xs:all>
  323. <xs:attribute name="value" type="xs:string" use="required"/>
  324. </xs:complexType>
  325. </xs:element>
  326. </xs:sequence>
  327. </xs:complexType>
  328. </xs:element>
  329. <xs:element ref="label" minOccurs="0"/>
  330. <xs:element ref="description" minOccurs="0"/>
  331. <xs:element ref="tooltip" minOccurs="0"/>
  332. <xs:element name="defaultValue" type="xs:string"/>
  333. </xs:all>
  334. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  335. </xs:complexType>
  336. <xs:unique name="enumValueUniqueness">
  337. <xs:selector xpath="*"/>
  338. <xs:field xpath="@value"/>
  339. </xs:unique>
  340. </xs:element>
  341. <xs:element name="colorProperty">
  342. <xs:complexType>
  343. <xs:all>
  344. <xs:element name="defaultColor" minOccurs="0">
  345. <xs:annotation>
  346. <xs:documentation>Specify a default RGB color with an optional alpha channel.</xs:documentation>
  347. </xs:annotation>
  348. <xs:complexType>
  349. <xs:all>
  350. <xs:element ref="RGBA"/>
  351. </xs:all>
  352. </xs:complexType>
  353. </xs:element>
  354. <xs:element ref="label" minOccurs="0"/>
  355. <xs:element ref="description" minOccurs="0"/>
  356. <xs:element ref="tooltip" minOccurs="0"/>
  357. </xs:all>
  358. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  359. </xs:complexType>
  360. </xs:element>
  361. <xs:element name="fontProperty">
  362. <xs:complexType>
  363. <xs:all>
  364. <xs:element name="defaultFont" minOccurs="0">
  365. <xs:complexType>
  366. <xs:attribute name="family" type="xs:string" use="required"/>
  367. <xs:attribute name="size" type="UnitLength" use="required"/>
  368. <xs:attribute name="weight" use="required">
  369. <xs:simpleType>
  370. <xs:restriction base="xs:NMTOKEN">
  371. <xs:enumeration value="normal"/>
  372. <xs:enumeration value="bold"/>
  373. <xs:enumeration value="inherit"/>
  374. </xs:restriction>
  375. </xs:simpleType>
  376. </xs:attribute>
  377. <xs:attribute name="style" use="required">
  378. <xs:simpleType>
  379. <xs:restriction base="xs:NMTOKEN">
  380. <xs:enumeration value="inherit"/>
  381. <xs:enumeration value="normal"/>
  382. <xs:enumeration value="italic"/>
  383. </xs:restriction>
  384. </xs:simpleType>
  385. </xs:attribute>
  386. </xs:complexType>
  387. </xs:element>
  388. <xs:element ref="label" minOccurs="0"/>
  389. <xs:element ref="description" minOccurs="0"/>
  390. <xs:element ref="tooltip" minOccurs="0"/>
  391. </xs:all>
  392. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  393. <xs:attribute name="unit" type="UnitList"/>
  394. </xs:complexType>
  395. </xs:element>
  396. <xs:element name="lengthProperty">
  397. <xs:complexType>
  398. <xs:all>
  399. <xs:element name="defaultLength" type="UnitLength" minOccurs="0"/>
  400. <xs:element ref="label" minOccurs="0"/>
  401. <xs:element ref="description" minOccurs="0"/>
  402. <xs:element ref="tooltip" minOccurs="0"/>
  403. </xs:all>
  404. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  405. <xs:attribute name="unit" type="UnitList"/>
  406. </xs:complexType>
  407. </xs:element>
  408. </xs:choice>
  409. </xs:group>
  410. <xs:element name="properties">
  411. <xs:complexType>
  412. <xs:sequence>
  413. <xs:choice maxOccurs="unbounded">
  414. <xs:group ref="PropertyTypes"/>
  415. <xs:element name="propertiesGroup">
  416. <xs:complexType>
  417. <xs:all>
  418. <xs:element ref="groupProperties"/>
  419. <xs:element ref="label" minOccurs="0"/>
  420. <xs:element ref="description" minOccurs="0"/>
  421. <xs:element ref="tooltip" minOccurs="0"/>
  422. </xs:all>
  423. <xs:attributeGroup ref="CommonPropertyAttributes"/>
  424. </xs:complexType>
  425. </xs:element>
  426. </xs:choice>
  427. </xs:sequence>
  428. </xs:complexType>
  429. <xs:unique name="chartTypePropertyUniqueness">
  430. <xs:selector xpath=".//*"/>
  431. <xs:field xpath="@name"/>
  432. </xs:unique>
  433. </xs:element>
  434. <xs:attributeGroup name="PropertyRequiredAttribute"/>
  435. <xs:attributeGroup name="CommonPropertyAttributes">
  436. <xs:attribute name="name" type="xs:string" use="required"/>
  437. <xs:attribute name="outputType" default="all">
  438. <xs:simpleType>
  439. <xs:restriction base="xs:string">
  440. <xs:enumeration value="all"/>
  441. <xs:enumeration value="static"/>
  442. <xs:enumeration value="interactive"/>
  443. </xs:restriction>
  444. </xs:simpleType>
  445. </xs:attribute>
  446. </xs:attributeGroup>
  447. <xs:simpleType name="TextType">
  448. <xs:annotation>
  449. <xs:documentation>A simple text type that preserves whitespace.</xs:documentation>
  450. </xs:annotation>
  451. <xs:restriction base="xs:string">
  452. <xs:whiteSpace value="preserve"/>
  453. </xs:restriction>
  454. </xs:simpleType>
  455. <xs:simpleType name="PercentDelta">
  456. <xs:restriction base="xs:integer">
  457. <xs:minInclusive value="-100"/>
  458. <xs:maxInclusive value="100"/>
  459. </xs:restriction>
  460. </xs:simpleType>
  461. <xs:simpleType name="Percent">
  462. <xs:restriction base="xs:nonNegativeInteger">
  463. <xs:minInclusive value="0"/>
  464. <xs:maxInclusive value="100"/>
  465. </xs:restriction>
  466. </xs:simpleType>
  467. <xs:simpleType name="UnitLength">
  468. <xs:restriction base="xs:string">
  469. <xs:pattern value="[0-9]*[.]?[0-9]+(px|%|in|cm|mm|pt|pc|em|ex)?"/>
  470. </xs:restriction>
  471. </xs:simpleType>
  472. <xs:simpleType name="UnitList">
  473. <xs:annotation>
  474. <xs:documentation>Type 'UnitList' is a comma separated list of supported font size units, for example 'px,pt,cm'. If not specified it is assumed that 'px,%,in,cm,mm,pt,pc,em,ex' are supported.</xs:documentation>
  475. </xs:annotation>
  476. <xs:restriction base="xs:string">
  477. <xs:pattern value="(px|%|in|cm|mm|pt|pc|em|ex)(,\s*(px|%|in|cm|mm|pt|pc|em|ex))*"/>
  478. </xs:restriction>
  479. </xs:simpleType>
  480. <xs:element name="label">
  481. <xs:complexType>
  482. <xs:simpleContent>
  483. <xs:extension base="TextType">
  484. <xs:attribute name="ids" type="xs:string"/>
  485. </xs:extension>
  486. </xs:simpleContent>
  487. </xs:complexType>
  488. </xs:element>
  489. <xs:element name="description">
  490. <xs:complexType>
  491. <xs:simpleContent>
  492. <xs:extension base="TextType">
  493. <xs:attribute name="ids" type="xs:string"/>
  494. </xs:extension>
  495. </xs:simpleContent>
  496. </xs:complexType>
  497. </xs:element>
  498. <xs:element name="tooltip">
  499. <xs:complexType>
  500. <xs:simpleContent>
  501. <xs:extension base="TextType">
  502. <xs:attribute name="ids" type="xs:string"/>
  503. </xs:extension>
  504. </xs:simpleContent>
  505. </xs:complexType>
  506. </xs:element>
  507. <xs:element name="set">
  508. <xs:annotation>
  509. <xs:documentation>Represents a set of 'categorySlot' values. For example; a set of members, set of tuples or a set of simple values.</xs:documentation>
  510. </xs:annotation>
  511. <xs:complexType>
  512. <xs:attribute name="refSlot" type="xs:string" use="required"/>
  513. </xs:complexType>
  514. </xs:element>
  515. <xs:element name="RGB">
  516. <xs:complexType>
  517. <xs:attribute name="r" use="required">
  518. <xs:simpleType>
  519. <xs:restriction base="xs:nonNegativeInteger">
  520. <xs:maxInclusive value="255"/>
  521. </xs:restriction>
  522. </xs:simpleType>
  523. </xs:attribute>
  524. <xs:attribute name="g" use="required">
  525. <xs:simpleType>
  526. <xs:restriction base="xs:nonNegativeInteger">
  527. <xs:maxInclusive value="255"/>
  528. </xs:restriction>
  529. </xs:simpleType>
  530. </xs:attribute>
  531. <xs:attribute name="b" use="required">
  532. <xs:simpleType>
  533. <xs:restriction base="xs:nonNegativeInteger">
  534. <xs:maxInclusive value="255"/>
  535. </xs:restriction>
  536. </xs:simpleType>
  537. </xs:attribute>
  538. </xs:complexType>
  539. </xs:element>
  540. <xs:element name="RGBA">
  541. <xs:complexType>
  542. <xs:attribute name="r" use="required">
  543. <xs:simpleType>
  544. <xs:restriction base="xs:nonNegativeInteger">
  545. <xs:maxInclusive value="255"/>
  546. </xs:restriction>
  547. </xs:simpleType>
  548. </xs:attribute>
  549. <xs:attribute name="g" use="required">
  550. <xs:simpleType>
  551. <xs:restriction base="xs:nonNegativeInteger">
  552. <xs:maxInclusive value="255"/>
  553. </xs:restriction>
  554. </xs:simpleType>
  555. </xs:attribute>
  556. <xs:attribute name="b" use="required">
  557. <xs:simpleType>
  558. <xs:restriction base="xs:nonNegativeInteger">
  559. <xs:maxInclusive value="255"/>
  560. </xs:restriction>
  561. </xs:simpleType>
  562. </xs:attribute>
  563. <xs:attribute name="a" default="1">
  564. <xs:simpleType>
  565. <xs:restriction base="xs:decimal">
  566. <xs:minInclusive value="0"/>
  567. <xs:maxInclusive value="1"/>
  568. </xs:restriction>
  569. </xs:simpleType>
  570. </xs:attribute>
  571. </xs:complexType>
  572. </xs:element>
  573. <xs:element name="categorySlot">
  574. <xs:annotation>
  575. <xs:documentation>Describes a slot that a set of values for a category can be passed to.</xs:documentation>
  576. </xs:annotation>
  577. <xs:complexType>
  578. <xs:all>
  579. <xs:element ref="label" minOccurs="0"/>
  580. <xs:element ref="tooltip" minOccurs="0"/>
  581. </xs:all>
  582. <xs:attribute name="name" type="xs:string" use="required"/>
  583. <xs:attribute name="categoryValues" default="indexedVisible">
  584. <xs:annotation>
  585. <xs:documentation>Indicates how category values should be generated.</xs:documentation>
  586. </xs:annotation>
  587. <xs:simpleType>
  588. <xs:restriction base="xs:string">
  589. <xs:enumeration value="indexedFull">
  590. <xs:annotation>
  591. <xs:documentation>Data rows will contain indexes to category
  592. values. The set of categories may be more than what is referenced in
  593. data rows. Visually, it is possible to show more categories
  594. than are referenced in data rows.</xs:documentation>
  595. </xs:annotation>
  596. </xs:enumeration>
  597. <xs:enumeration value="indexedVisible">
  598. <xs:annotation>
  599. <xs:documentation>Data rows will contain indexes to the category
  600. values. All the categories are referenced by indexes in data rows.</xs:documentation>
  601. </xs:annotation>
  602. </xs:enumeration>
  603. <xs:enumeration value="byValue">
  604. <xs:annotation>
  605. <xs:documentation>Category values are generated directly in data
  606. rows and are typically used by network charts.
  607. </xs:documentation>
  608. </xs:annotation>
  609. </xs:enumeration>
  610. </xs:restriction>
  611. </xs:simpleType>
  612. </xs:attribute>
  613. </xs:complexType>
  614. </xs:element>
  615. <xs:element name="valueSlot">
  616. <xs:annotation>
  617. <xs:documentation>Describes a slot that quantitative values can be passed to. Typically, a measure is used for 'valueSlot' but a member or tuple can also be used.</xs:documentation>
  618. </xs:annotation>
  619. <xs:complexType>
  620. <xs:all>
  621. <xs:element ref="label" minOccurs="0"/>
  622. <xs:element ref="tooltip" minOccurs="0"/>
  623. </xs:all>
  624. <xs:attribute name="name" type="xs:string" use="required"/>
  625. <xs:attribute name="supportsRange" type="xs:boolean" default="false">
  626. <xs:annotation>
  627. <xs:documentation>If 'true', a report authors can specify a minimum and maximum range for this field which will impact rendering.
  628. The minimum and maximum can be provided for both server and client side visualizations.
  629. Setting 'supportsRange' to 'true' is useful to allow a fixed axis scale to be set during filtering operations.</xs:documentation>
  630. </xs:annotation>
  631. </xs:attribute>
  632. </xs:complexType>
  633. </xs:element>
  634. <xs:element name="groupProperties">
  635. <xs:complexType>
  636. <xs:sequence>
  637. <xs:group ref="PropertyTypes" maxOccurs="unbounded"/>
  638. </xs:sequence>
  639. </xs:complexType>
  640. </xs:element>
  641. <xs:attributeGroup name="locationGroup">
  642. <xs:attribute name="location" type="xs:string" use="required"/>
  643. </xs:attributeGroup>
  644. </xs:schema>