123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
- <chapter id="VizBundleChart2dMethods">
- <title><emphasis>Multi-Dimensional Methods</emphasis></title>
- <para>This section covers methods that create multi-dimensional
- visualizations contained in the MultiD module. These methods provide ways to
- depict data in a multi-dimensional space.</para>
- <para></para>
- <sect1 id="VizMultiDArea">
- <title>Area</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Area(<indexterm>
- <primary>Visualizer.MultiD.Area</primary>
- </indexterm><indexterm>
- <primary>MultiD.Area</primary>
- </indexterm><indexterm>
- <primary>Area</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Area </emphasis>visualization method
- displays graphically quantitative data. The area between the axis and each
- line is shown and can be emphasized using shading or colors. This is
- commonly used to compare two or more quantities.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
-
- viz_area := Visualizer.MultiD.Area('area',, 'MultiD__test');
- Viz_area;</programlisting>
- </sect1>
- <sect1 id="VizMultiDBar">
- <title>Bar</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Bar(<indexterm>
- <primary>Visualizer.MultiD.Bar</primary>
- </indexterm><indexterm>
- <primary>MultiD.Bar</primary>
- </indexterm><indexterm>
- <primary>Bar</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Bar </emphasis>visualization method
- displays a graph consisting of horizontal rectangles (bars) where each
- length is proportional to data value.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
-
- viz_bar := Visualizer.MultiD.Bar('bar',, 'MultiD__test');
- viz_bar;</programlisting>
- </sect1>
- <sect1 id="VizMultiDColumn">
- <title>Column</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Column(<indexterm>
- <primary>Visualizer.MultiD.Column</primary>
- </indexterm><indexterm>
- <primary>MultiD.Column</primary>
- </indexterm><indexterm>
- <primary>Column</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Column </emphasis>visualization method
- displays a graph consisting of vertical rectangles (bars) where each
- length is proportional to data value.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
-
- viz_Column := Visualizer.MultiD.Column('column',, 'MultiD__test');
- viz_Column;</programlisting>
- </sect1>
- <sect1 id="VizMultiDHexBin">
- <title>HexBin</title>
- <para><emphasis role="bold">Visualizer.MuiltD.HexBin(<indexterm>
- <primary>Visualizer.MultiD.HexBin</primary>
- </indexterm><indexterm>
- <primary>MultiD.HexBin</primary>
- </indexterm><indexterm>
- <primary>HexBin</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">HexBin </emphasis>visualization method
- displays a Hexagonal Bin plot which plots two or more continuous variables
- against each other. Hexagonal binning is useful for aggregating data
- values into a coarser display. For example, rather than showing thousands
- of points on a scatter plot, you can combine points into a few hexagons to
- show the distribution.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
-
- viz_hexBin := Visualizer.MultiD.HexBin('hexBin',, 'MultiD__test');
- viz_hexBin;</programlisting>
- </sect1>
- <sect1 id="VizMultiDLine">
- <title>Line</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Line(<indexterm>
- <primary>Visualizer.MultiD.Line</primary>
- </indexterm><indexterm>
- <primary>MultiD.Line</primary>
- </indexterm><indexterm>
- <primary>Line</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Line </emphasis>visualization method
- displays a line graph which uses points connected by lines to show how
- values change.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
-
- viz_line := Visualizer.MultiD.Line('line',, 'MultiD__test');
- viz_line;</programlisting>
- </sect1>
- <sect1 id="VizMultiDScatter">
- <title>Scatter</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Scatter(<indexterm>
- <primary>Visualizer.MultiD.Scatter</primary>
- </indexterm><indexterm>
- <primary>MultiD.Scatter</primary>
- </indexterm><indexterm>
- <primary>Scatter</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Scatter </emphasis>visualization method
- displays a scatter plot using horizontal and vertical axes to plot data
- points.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
- viz_scatter := Visualizer.MultiD.Scatter('scatter',, 'MultiD__test');
- viz_scatter;
- </programlisting>
- </sect1>
- <sect1 id="VizMultiDStep">
- <title>Step</title>
- <para><emphasis role="bold">Visualizer.MuiltD.Step(<indexterm>
- <primary>Visualizer.MultiD.Step</primary>
- </indexterm><indexterm>
- <primary>MultiD.Step</primary>
- </indexterm><indexterm>
- <primary>Step</primary>
- </indexterm>(</emphasis> <emphasis>id</emphasis> , <emphasis
- role="bold">[</emphasis>.<emphasis>dataSource</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>outputName</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>mappings</emphasis><emphasis
- role="bold">], [</emphasis><emphasis>properties</emphasis><emphasis
- role="bold">]);</emphasis></para>
- <para></para>
- <informaltable colsep="1" frame="all" rowsep="1">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>id</emphasis></entry>
- <entry>Unique identifier for the visualization</entry>
- </row>
- <row>
- <entry><emphasis>dataSource</emphasis></entry>
- <entry>Location of the result set (WUID, Logical File, Roxie Query
- result), defaults to the current WU</entry>
- </row>
- <row>
- <entry><emphasis>outputName</emphasis></entry>
- <entry>Result set name (ignored for Logical Files)</entry>
- </row>
- <row>
- <entry><emphasis>mappings</emphasis></entry>
- <entry>Maps Column Name <--> field ID</entry>
- </row>
- <row>
- <entry><emphasis>filteredBy</emphasis></entry>
- <entry>Filter condition (also useful for widget
- interactions)</entry>
- </row>
- <row>
- <entry><emphasis>properties</emphasis></entry>
- <entry>Dermatology properties. See <link
- linkend="VizDermProp">Dermatology Properties</link></entry>
- </row>
- <row>
- <entry>Return:<emphasis></emphasis></entry>
- <entry>A "meta" output describing the visualization.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">Step </emphasis>visualization method
- creates a step graph made of lines in horizontal intervals or
- 'steps'.</para>
- <para>Example:</para>
- <programlisting format="linespecific">IMPORT Visualizer;
- ds := DATASET([ {'English', 5, 43, 41, 92},
- {'History', 17, 43, 83, 93},
- {'Geography', 7, 45, 52, 83},
- {'Chemistry', 16, 73, 52, 83},
- {'Spanish', 26, 83, 11, 72},
- {'Bioligy', 66, 60, 85, 6},
- {'Physics', 46, 20, 53, 7},
- {'Math', 98, 30, 23, 13}],
- {STRING subject, INTEGER4 year1,
- INTEGER4 year2, INTEGER4 year3, INTEGER4 year4});
- data_exams := OUTPUT(ds, NAMED('MultiD__test'));
- data_exams;
- viz_step := Visualizer.MultiD.Step('step',, 'MultiD__test');
- viz_step;
- </programlisting>
- </sect1>
- </chapter>
|