Any.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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="VizBundleGeneralMethods">
  5. <title><emphasis>General Visualization Methods</emphasis></title>
  6. <para>This section covers methods that create generic visualizations
  7. contained in the Any module. These visualizations are handy for testing and
  8. examining your data source.</para>
  9. <para></para>
  10. <sect1 id="VizGrid">
  11. <title>Grid</title>
  12. <para><emphasis role="bold">Visualizer.Any.Grid(<indexterm>
  13. <primary>Visualizer.Any.Grid</primary>
  14. </indexterm><indexterm>
  15. <primary>Any.Grid</primary>
  16. </indexterm><indexterm>
  17. <primary>Grid</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>mappings</emphasis><emphasis
  22. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  23. role="bold">]);</emphasis></para>
  24. <para></para>
  25. <informaltable colsep="1" frame="all" rowsep="1">
  26. <tgroup cols="2">
  27. <colspec colwidth="80.50pt" />
  28. <colspec />
  29. <tbody>
  30. <row>
  31. <entry><emphasis>id</emphasis></entry>
  32. <entry>Unique identifier for the visualization</entry>
  33. </row>
  34. <row>
  35. <entry><emphasis>dataSource</emphasis></entry>
  36. <entry>Location of the result set (WUID, Logical File, Roxie Query
  37. result), defaults to the current WU</entry>
  38. </row>
  39. <row>
  40. <entry><emphasis>outputName</emphasis></entry>
  41. <entry>Result set name (ignored for Logical Files)</entry>
  42. </row>
  43. <row>
  44. <entry><emphasis>mappings</emphasis></entry>
  45. <entry>Maps Column Name &lt;--&gt; field ID</entry>
  46. </row>
  47. <row>
  48. <entry><emphasis>filteredBy</emphasis></entry>
  49. <entry>Filter condition (also useful for widget
  50. interactions)</entry>
  51. </row>
  52. <row>
  53. <entry><emphasis>properties</emphasis></entry>
  54. <entry>Dermatology properties. See <link
  55. linkend="VizDermProp">Dermatology Properties</link></entry>
  56. </row>
  57. <row>
  58. <entry>Return:<emphasis></emphasis></entry>
  59. <entry>A "meta" output describing the visualization.</entry>
  60. </row>
  61. </tbody>
  62. </tgroup>
  63. </informaltable>
  64. <para>The <emphasis role="bold">Grid </emphasis>visualization method
  65. creates a simple table or grid from any data.</para>
  66. <para>Example:</para>
  67. <programlisting format="linespecific">IMPORT Visualizer;
  68. ds := DATASET([ {'English', 5},
  69. {'History', 17},
  70. {'Geography', 7},
  71. {'Chemistry', 16},
  72. {'Irish', 26},
  73. {'Spanish', 67},
  74. {'Bioligy', 66},
  75. {'Physics', 46},
  76. {'Math', 98}],
  77. {STRING subject, INTEGER4 year});
  78. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  79. data_example;
  80. viz_Grid := Visualizer.Any.Grid('Grid',, 'Chart2D__test');
  81. viz_Grid;
  82. </programlisting>
  83. </sect1>
  84. <sect1 id="VizHandsonGrid">
  85. <title>HandsonGrid</title>
  86. <para><emphasis role="bold">Visualizer.Any.HandsonGrid(<indexterm>
  87. <primary>Visualizer.Any.HandsonGrid</primary>
  88. </indexterm><indexterm>
  89. <primary>Any.HandsonGrid</primary>
  90. </indexterm><indexterm>
  91. <primary>HandsonGrid</primary>
  92. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  93. role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
  94. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  95. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  96. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  97. role="bold">]);</emphasis></para>
  98. <para></para>
  99. <informaltable colsep="1" frame="all" rowsep="1">
  100. <tgroup cols="2">
  101. <colspec colwidth="80.50pt" />
  102. <colspec />
  103. <tbody>
  104. <row>
  105. <entry><emphasis>id</emphasis></entry>
  106. <entry>Unique identifier for the visualization</entry>
  107. </row>
  108. <row>
  109. <entry><emphasis>dataSource</emphasis></entry>
  110. <entry>Location of the result set (WUID, Logical File, Roxie Query
  111. result), defaults to the current WU</entry>
  112. </row>
  113. <row>
  114. <entry><emphasis>outputName</emphasis></entry>
  115. <entry>Result set name (ignored for Logical Files)</entry>
  116. </row>
  117. <row>
  118. <entry><emphasis>mappings</emphasis></entry>
  119. <entry>Maps Column Name &lt;--&gt; field ID</entry>
  120. </row>
  121. <row>
  122. <entry><emphasis>filteredBy</emphasis></entry>
  123. <entry>Filter condition (also useful for widget
  124. interactions)</entry>
  125. </row>
  126. <row>
  127. <entry><emphasis>properties</emphasis></entry>
  128. <entry>Dermatology properties. See <link
  129. linkend="VizDermProp">Dermatology Properties</link></entry>
  130. </row>
  131. <row>
  132. <entry>Return:<emphasis></emphasis></entry>
  133. <entry>A "meta" output describing the visualization.</entry>
  134. </row>
  135. </tbody>
  136. </tgroup>
  137. </informaltable>
  138. <para>The <emphasis role="bold">HandsonGrid </emphasis>visualization
  139. method creates a hands on table or grid from any data.</para>
  140. <para>Example:</para>
  141. <programlisting format="linespecific">IMPORT Visualizer;
  142. ds := DATASET([ {'English', 5},
  143. {'History', 17},
  144. {'Geography', 7},
  145. {'Chemistry', 16},
  146. {'Irish', 26},
  147. {'Spanish', 67},
  148. {'Bioligy', 66},
  149. {'Physics', 46},
  150. {'Math', 98}],
  151. {STRING subject, INTEGER4 year});
  152. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  153. data_example;
  154. viz_HandsonGrid := Visualizer.Any.HandsonGrid('HandsonGrid',, 'Chart2D__test');
  155. viz_HandsonGrid;
  156. </programlisting>
  157. </sect1>
  158. </chapter>