2d.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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="VizBundleChart2dMethods">
  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.</para>
  8. <para>***more to come**</para>
  9. <sect1 id="Apply2Cells">
  10. <title>Bubble</title>
  11. <para><emphasis role="bold">Visualization.TwoD.Chart2D.Bubble(<indexterm>
  12. <primary>Visualization.TwoD.Bubble</primary>
  13. </indexterm><indexterm>
  14. <primary>TwoD.Bubble</primary>
  15. </indexterm><indexterm>
  16. <primary>Bubble</primary>
  17. </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
  18. role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
  19. role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
  20. role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
  21. role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
  22. role="bold">]);</emphasis></para>
  23. <para></para>
  24. <informaltable colsep="1" frame="all" rowsep="1">
  25. <tgroup cols="2">
  26. <colspec colwidth="80.50pt" />
  27. <colspec />
  28. <tbody>
  29. <row>
  30. <entry><emphasis>id</emphasis></entry>
  31. <entry>Unique identifier for the visualization</entry>
  32. </row>
  33. <row>
  34. <entry><emphasis>dataSource</emphasis></entry>
  35. <entry>Location of the result set (WUID, Logical File, Roxie Query
  36. result), defaults to the current WU</entry>
  37. </row>
  38. <row>
  39. <entry><emphasis>outputName</emphasis></entry>
  40. <entry>Result set name (ignored for Logical Files)</entry>
  41. </row>
  42. <row>
  43. <entry><emphasis>mappings</emphasis></entry>
  44. <entry>Maps Column Name &lt;--&gt; field ID</entry>
  45. </row>
  46. <row>
  47. <entry><emphasis>filteredBy</emphasis></entry>
  48. <entry>Filter condition (also useful for widget
  49. interactions)</entry>
  50. </row>
  51. <row>
  52. <entry><emphasis>properties</emphasis></entry>
  53. <entry>Dermatology properties. See Dermatology
  54. Properties***todo***</entry>
  55. </row>
  56. <row>
  57. <entry>Return:<emphasis></emphasis></entry>
  58. <entry>A "meta" output describing the visualization. See
  59. Common/Meta***todo***</entry>
  60. </row>
  61. </tbody>
  62. </tgroup>
  63. </informaltable>
  64. <para>The <emphasis role="bold">Bubble </emphasis>visualization method
  65. creates a bubble chart from two-dimensional data. A bubble chart is a
  66. variation of a scatter chart where data points are replaced with bubbles
  67. and the size of the bubble is represented by a dimension of the
  68. data.</para>
  69. <para>Example:</para>
  70. <programlisting format="linespecific">IMPORT Visualization;
  71. ds := DATASET([ {'English', 5},
  72. {'History', 17},
  73. {'Geography', 7},
  74. {'Chemistry', 16},
  75. {'Irish', 26},
  76. {'Spanish', 67},
  77. {'Bioligy', 66},
  78. {'Physics', 46},
  79. {'Math', 98}],
  80. {STRING subject, INTEGER4 year});
  81. data_example := OUTPUT(ds, NAMED('Chart2D__test'));
  82. data_example;
  83. viz_bubble := Visualization.TwoD.Bubble('bubble',, 'Chart2D__test');
  84. viz_bubble;
  85. </programlisting>
  86. </sect1>
  87. </chapter>