TwoD.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <chapter id="VizTwoD">
  5. <title><emphasis>Two-Dimensional Methods</emphasis></title>
  6. <para>This section covers methods that create two-dimensional visualizations
  7. contained in the TwoD module. These methods provide ways to depict data in a
  8. two-dimensional space.</para>
  9. <para></para>
  10. <sect1 id="VizBubble">
  11. <title>Bubble</title>
  12. <para><emphasis role="bold">Visualizer.TwoD.Bubble(<indexterm>
  13. <primary>Visualizer.TwoD.Bubble</primary>
  14. </indexterm><indexterm>
  15. <primary>TwoD.Bubble</primary>
  16. </indexterm><indexterm>
  17. <primary>Bubble</primary>
  18. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  19. role="bold">[</emphasis><emphasis>dataSource</emphasis><emphasis
  20. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  21. role="bold">], [</emphasis><emphasis>filteredBy</emphasis><emphasis
  22. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  23. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  24. role="bold">]);</emphasis></para>
  25. <para></para>
  26. <informaltable colsep="1" frame="all" rowsep="1">
  27. <tgroup cols="2">
  28. <colspec colwidth="80.50pt" />
  29. <colspec />
  30. <tbody>
  31. <row>
  32. <entry><emphasis>id</emphasis></entry>
  33. <entry>Unique identifier for the visualization</entry>
  34. </row>
  35. <row>
  36. <entry><emphasis>dataSource</emphasis></entry>
  37. <entry>Location of the result set (WUID, Logical File, Roxie
  38. query), defaults to the current WU</entry>
  39. </row>
  40. <row>
  41. <entry><emphasis>outputName</emphasis></entry>
  42. <entry>Result set name (ignored for Logical Files)</entry>
  43. </row>
  44. <row>
  45. <entry><emphasis>mappings</emphasis></entry>
  46. <entry>Maps human labels &lt;--&gt; field Ids</entry>
  47. </row>
  48. <row>
  49. <entry><emphasis>filteredBy</emphasis></entry>
  50. <entry>Filter condition (also useful for widget
  51. interactions)</entry>
  52. </row>
  53. <row>
  54. <entry><emphasis>properties</emphasis></entry>
  55. <entry>Dermatology properties. See <link
  56. linkend="VizDermProp">Dermatology Properties</link></entry>
  57. </row>
  58. <row>
  59. <entry>Return:<emphasis></emphasis></entry>
  60. <entry>A "meta" output describing the visualization.</entry>
  61. </row>
  62. </tbody>
  63. </tgroup>
  64. </informaltable>
  65. <para>The <emphasis role="bold">Bubble </emphasis>visualization method
  66. creates a bubble chart from two-dimensional data. A bubble chart is a
  67. variation of a pie chart where data points are shown as bubbles and the
  68. size of the bubble is represented by the second dimension of the
  69. data.</para>
  70. <para>Example:</para>
  71. <programlisting format="linespecific">IMPORT Visualizer;
  72. ds := DATASET([ {'English', 5},
  73. {'History', 17},
  74. {'Geography', 7},
  75. {'Chemistry', 16},
  76. {'Irish', 26},
  77. {'Spanish', 67},
  78. {'Bioligy', 66},
  79. {'Physics', 46},
  80. {'Math', 98}],
  81. {STRING subject, INTEGER4 year});
  82. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  83. data_example;
  84. viz_bubble := Visualizer.TwoD.Bubble('bubble',, 'Chart2D__test');
  85. viz_bubble;
  86. </programlisting>
  87. </sect1>
  88. <sect1 id="VizPie">
  89. <title>Pie</title>
  90. <para><emphasis role="bold">Visualizer.TwoD.Pie(<indexterm>
  91. <primary>Visualizer.TwoD.Pie</primary>
  92. </indexterm><indexterm>
  93. <primary>TwoD.Pie</primary>
  94. </indexterm><indexterm>
  95. <primary>Pie</primary>
  96. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  97. role="bold">[</emphasis><emphasis>dataSource</emphasis><emphasis
  98. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  99. role="bold">], [</emphasis><emphasis>filteredBy</emphasis><emphasis
  100. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  101. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  102. role="bold">]);</emphasis></para>
  103. <para></para>
  104. <informaltable colsep="1" frame="all" rowsep="1">
  105. <tgroup cols="2">
  106. <colspec colwidth="80.50pt" />
  107. <colspec />
  108. <tbody>
  109. <row>
  110. <entry><emphasis>id</emphasis></entry>
  111. <entry>Unique identifier for the visualization</entry>
  112. </row>
  113. <row>
  114. <entry><emphasis>dataSource</emphasis></entry>
  115. <entry>Location of the result set (WUID, Logical File, Roxie
  116. query), defaults to the current WU</entry>
  117. </row>
  118. <row>
  119. <entry><emphasis>outputName</emphasis></entry>
  120. <entry>Result set name (ignored for Logical Files)</entry>
  121. </row>
  122. <row>
  123. <entry><emphasis>mappings</emphasis></entry>
  124. <entry>Maps human labels &lt;--&gt; field Ids</entry>
  125. </row>
  126. <row>
  127. <entry><emphasis>filteredBy</emphasis></entry>
  128. <entry>Filter condition (also useful for widget
  129. interactions)</entry>
  130. </row>
  131. <row>
  132. <entry><emphasis>properties</emphasis></entry>
  133. <entry>Dermatology properties. See <link
  134. linkend="VizDermProp">Dermatology Properties</link></entry>
  135. </row>
  136. <row>
  137. <entry>Return:<emphasis></emphasis></entry>
  138. <entry>A "meta" output describing the visualization.</entry>
  139. </row>
  140. </tbody>
  141. </tgroup>
  142. </informaltable>
  143. <para>The <emphasis role="bold">Pie </emphasis>visualization method
  144. creates a pie chart from two-dimensional data. A pie chart is a graph in
  145. which a circle is divided into secions representing a portion of the
  146. whole.</para>
  147. <para>Example:</para>
  148. <programlisting format="linespecific">IMPORT Visualizer;
  149. ds := DATASET([ {'English', 5},
  150. {'History', 17},
  151. {'Geography', 7},
  152. {'Chemistry', 16},
  153. {'Irish', 26},
  154. {'Spanish', 67},
  155. {'Bioligy', 66},
  156. {'Physics', 46},
  157. {'Math', 98}],
  158. {STRING subject, INTEGER4 year});
  159. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  160. data_example;
  161. viz_pie := Visualizer.TwoD.Pie('pie',, 'Chart2D__test');
  162. viz_pie;
  163. </programlisting>
  164. </sect1>
  165. <sect1 id="VizSummary">
  166. <title>Summary</title>
  167. <para><emphasis role="bold">Visualizer.TwoD.Summary(<indexterm>
  168. <primary>Visualizer.TwoD.Summary</primary>
  169. </indexterm><indexterm>
  170. <primary>TwoD.Summary</primary>
  171. </indexterm><indexterm>
  172. <primary>Summary</primary>
  173. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  174. role="bold">[</emphasis><emphasis>dataSource</emphasis><emphasis
  175. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  176. role="bold">], [</emphasis><emphasis>filteredBy</emphasis><emphasis
  177. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  178. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  179. role="bold">]);</emphasis></para>
  180. <para></para>
  181. <informaltable colsep="1" frame="all" rowsep="1">
  182. <tgroup cols="2">
  183. <colspec colwidth="80.50pt" />
  184. <colspec />
  185. <tbody>
  186. <row>
  187. <entry><emphasis>id</emphasis></entry>
  188. <entry>Unique identifier for the visualization</entry>
  189. </row>
  190. <row>
  191. <entry><emphasis>dataSource</emphasis></entry>
  192. <entry>Location of the result set (WUID, Logical File, Roxie
  193. query), defaults to the current WU</entry>
  194. </row>
  195. <row>
  196. <entry><emphasis>outputName</emphasis></entry>
  197. <entry>Result set name (ignored for Logical Files)</entry>
  198. </row>
  199. <row>
  200. <entry><emphasis>mappings</emphasis></entry>
  201. <entry>Maps human labels &lt;--&gt; field Ids</entry>
  202. </row>
  203. <row>
  204. <entry><emphasis>filteredBy</emphasis></entry>
  205. <entry>Filter condition (also useful for widget
  206. interactions)</entry>
  207. </row>
  208. <row>
  209. <entry><emphasis>properties</emphasis></entry>
  210. <entry>Dermatology properties. See <link
  211. linkend="VizDermProp">Dermatology Properties</link></entry>
  212. </row>
  213. <row>
  214. <entry>Return:<emphasis></emphasis></entry>
  215. <entry>A "meta" output describing the visualization.</entry>
  216. </row>
  217. </tbody>
  218. </tgroup>
  219. </informaltable>
  220. <para>The <emphasis role="bold">Summary </emphasis>visualization method
  221. creates a summary chart from two-dimensional data. The summary graph
  222. defaults to graphic showing scrolling data values.</para>
  223. <para>Example:</para>
  224. <programlisting format="linespecific">IMPORT Visualizer;
  225. ds := DATASET([ {'English', 5},
  226. {'History', 17},
  227. {'Geography', 7},
  228. {'Chemistry', 16},
  229. {'Irish', 26},
  230. {'Spanish', 67},
  231. {'Bioligy', 66},
  232. {'Physics', 46},
  233. {'Math', 98}],
  234. {STRING subject, INTEGER4 year});
  235. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  236. data_example;
  237. viz_Summary := Visualizer.TwoD.Summary('Summary',, 'Chart2D__test');
  238. viz_Summary;
  239. </programlisting>
  240. </sect1>
  241. <sect1 id="VizWordCloud">
  242. <title>WordCloud</title>
  243. <para><emphasis role="bold">Visualizer.TwoD.WordCloud(<indexterm>
  244. <primary>Visualizer.TwoD.WordCloud</primary>
  245. </indexterm><indexterm>
  246. <primary>TwoD.WordCloud</primary>
  247. </indexterm><indexterm>
  248. <primary>WordCloud</primary>
  249. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  250. role="bold">[</emphasis><emphasis>dataSource</emphasis><emphasis
  251. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  252. role="bold">], [</emphasis><emphasis>filteredBy</emphasis><emphasis
  253. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  254. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  255. role="bold">]);</emphasis></para>
  256. <para></para>
  257. <informaltable colsep="1" frame="all" rowsep="1">
  258. <tgroup cols="2">
  259. <colspec colwidth="80.50pt" />
  260. <colspec />
  261. <tbody>
  262. <row>
  263. <entry><emphasis>id</emphasis></entry>
  264. <entry>Unique identifier for the visualization</entry>
  265. </row>
  266. <row>
  267. <entry><emphasis>dataSource</emphasis></entry>
  268. <entry>Location of the result set (WUID, Logical File, Roxie
  269. query), defaults to the current WU</entry>
  270. </row>
  271. <row>
  272. <entry><emphasis>outputName</emphasis></entry>
  273. <entry>Result set name (ignored for Logical Files)</entry>
  274. </row>
  275. <row>
  276. <entry><emphasis>mappings</emphasis></entry>
  277. <entry>Maps human labels &lt;--&gt; field Ids</entry>
  278. </row>
  279. <row>
  280. <entry><emphasis>filteredBy</emphasis></entry>
  281. <entry>Filter condition (also useful for widget
  282. interactions)</entry>
  283. </row>
  284. <row>
  285. <entry><emphasis>properties</emphasis></entry>
  286. <entry>Dermatology properties. See <link
  287. linkend="VizDermProp">Dermatology Properties</link></entry>
  288. </row>
  289. <row>
  290. <entry>Return:<emphasis></emphasis></entry>
  291. <entry>A "meta" output describing the visualization.</entry>
  292. </row>
  293. </tbody>
  294. </tgroup>
  295. </informaltable>
  296. <para>The <emphasis role="bold">WordCloud </emphasis>visualization method
  297. creates a word cloud chart from two-dimensional data. A WordCloud is
  298. weighted word list in visual design. It is a visual representation for
  299. text data, typically used to depict the weight or importance of words by
  300. the font size or color.</para>
  301. <para>Example:</para>
  302. <programlisting format="linespecific">IMPORT Visualizer;
  303. ds := DATASET([ {'English', 5},
  304. {'History', 17},
  305. {'Geography', 7},
  306. {'Chemistry', 16},
  307. {'Irish', 26},
  308. {'Spanish', 67},
  309. {'Bioligy', 66},
  310. {'Physics', 46},
  311. {'Math', 98}],
  312. {STRING subject, INTEGER4 year});
  313. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  314. data_example;
  315. viz_WordCloud := Visualizer.TwoD.WordCloud('WordCloud',, 'Chart2D__test');
  316. viz_WordCloud;
  317. </programlisting>
  318. </sect1>
  319. </chapter>