XML Examples

      XML Example: Line Chart

      XML Example: Axis Titles

      XML Example: Multiple Axes

      XML Example: Axis Offset

      XML Example: Rotated Labels

      XML Example: Pie Chart

      XML Example: Box Plot

      XML Example: Contour Chart

      XML Example: Heatmap

      XML Example: Bar Chart of States

      XML Example: Bar Chart

      XML Example: Polar Plot

XML Example: Line Chart

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <ChartTitle>

        <Attribute name="Title">Line Chart</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <AxisXY>

        <Data y="{6,5,7,1}">

            <Attribute name="LineColor" value="blue"/>

            <Attribute name="LineWidth" value="2.0"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

            <Attribute name="Title" value="Blue Line"/>

            <ToolTip/>

        </Data>

        <Data y="{1,3,6,8}">

            <Attribute name="MarkerColor" value="darkblue"/>

            <Attribute name="DataType" value="DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

            <Attribute name="Title" value="Markers"/>

            <ToolTip/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Axis Titles

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Attribute name="FontName" value="Serif"/>

    <ChartTitle>

        <Attribute name="Title">Axis Titles</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <AxisXY>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="The X-Axis"/>

                <Attribute name="TextColor" value="brown"/>

                <Attribute name="FontStyle" value="ITALIC"/>

            </AxisTitle>

            <AxisUnit>

                <Attribute name="Title" value="ft/s"/>

            </AxisUnit>

        </AxisX>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="The Y-Axis"/>

                <Attribute name="TextColor" value="red"/>

                <Attribute name="FontStyle" value="BOLD"/>

            </AxisTitle>

            <AxisUnit>

                <Attribute name="Title" value="temp"/>

            </AxisUnit>

        </AxisY>

        <Data y="{6,5,7,1}">

            <Attribute name="LineColor" value="blue"/>

            <Attribute name="LineWidth" value="2.0"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

        </Data>

        <Data y="{1,3,6,8}">

            <Attribute name="MarkerColor" value="darkblue"/>

            <Attribute name="DataType" value="DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Multiple Axes

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Legend>

        <Attribute name="Paint" value="true"/>

        <Attribute name="Viewport" value="0.83,1.0,0.1,0.3"/>

    </Legend>

    <AxisXY>

        <Attribute name="Viewport" value="0.13,0.75,0.2,0.8"/>

        <Attribute name="LineColor" value="red"/>

        <Attribute name="MarkerColor" value="red"/>

        <Attribute name="TextColor" value="red"/>

        <Data x="10,20,30,40" y="60,50,70,10">

            <Attribute name="LineWidth" value="2.0"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

            <Attribute name="Title" value="Red Axis"/>

            <ToolTip/>

        </Data>

    </AxisXY>

    <AxisXY>

        <Attribute name="Viewport" value="0.13,0.75,0.2,0.8"/>

        <Attribute name="LineColor" value="blue"/>

        <Attribute name="MarkerColor" value="blue"/>

        <Attribute name="TextColor" value="blue"/>

        <AxisX>

            <Attribute name="Type" value="AXIS_X_TOP"/>

        </AxisX>

        <AxisY>

            <Attribute name="Type" value="AXIS_Y_RIGHT"/>

        </AxisY>

        <Data y="1,8,3,7">

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

            <Attribute name="Title" value="Blue Axis"/>

            <ToolTip/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Axis Offset

 

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <AxisXY>

        <Attribute name="Viewport" value="0.3,0.9,0.1,0.7"/>

        <Attribute name="LineColor" value="gold"/>

        <Attribute name="MarkerColor" value="gold"/>

        <Attribute name="TextColor" value="gold"/>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="Gold X"/>

            </AxisTitle>

        </AxisX>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="Gold Y"/>

            </AxisTitle>

        </AxisY>

        <Data x="10,20,30,40" y="60,50,70,10">

            <Attribute name="LineWidth" value="2.0"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

            <Attribute name="Title" value="Gold Axis"/>

        </Data>

    </AxisXY>

    <AxisXY>

        <Attribute name="Cross" value="-0.75,-0.2"/>

        <Attribute name="Viewport" value="0.3,0.9,0.1,0.7"/>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="Blue X"/>

            </AxisTitle>

        </AxisX>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="Blue Y"/>

            </AxisTitle>

        </AxisY>

        <Attribute name="LineColor" value="blue"/>

        <Attribute name="MarkerColor" value="blue"/>

        <Attribute name="TextColor" value="blue"/>

        <Data y="1,8,3,7">

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

            <Attribute name="Title" value="Blue Axis"/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Rotated Labels

 

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <ChartTitle>

        <Attribute name="Title">Chart With Labels</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <Legend>

        <Attribute name="Paint" value="true"/>

        <Attribute name="TextColor" value="red"/>

        <Attribute name="FillType" value="FILL_TYPE_SOLID"/>

    </Legend>

    <AxisXY>

        <Attribute name="ClipData" value="false"/>

        <Data y="{6,5,7,1}">

            <Attribute name="LabelType" value="LABEL_TYPE_TITLE"/>

            <Attribute name="TextAngle" value="45"/>

            <Attribute name="LineColor" value="blue"/>

            <Attribute name="LineWidth" value="2.0"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

            <Attribute name="TextColor" value="blue"/>

            <Attribute name="FontStyle" value="3"/>

            <Attribute name="Title">

<![CDATA[Line A

Line B

and more]]>

            </Attribute>

        </Data>

        <Data y="{1,3,6,8}">

            <Attribute name="MarkerColor" value="darkblue"/>

            <Attribute name="DataType" value="DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

            <Attribute name="Title" value="Circle"/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Box Plot

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Array id="ozone">

        <Array>

            <NumberList>

                    66.0, 52.0, 49.0, 64.0, 68.0, 26.0, 86.0, 52.0,

                    43.0, 75.0, 87.0, 188.0, 118.0, 103.0, 82.0,

                    71.0, 103.0, 240.0, 31.0, 40.0, 47.0, 51.0, 31.0,

                    47.0, 14.0, 71.0

            </NumberList>

        </Array>

        <Array>

            <NumberList>

                    61.0, 47.0, 196.0, 131.0, 173.0, 37.0, 47.0,

                    215.0, 230.0, 69.0, 98.0, 125.0, 94.0, 72.0,

                    72.0, 125.0, 143.0, 192.0, 122.0, 32.0, 114.0,

                    32.0, 23.0, 71.0, 38.0, 136.0, 169.0

            </NumberList>

        </Array>

        <Array>

            <NumberList>

                    152.0, 201.0, 134.0, 206.0, 92.0, 101.0, 119.0, 

                    124.0, 133.0, 83.0, 60.0, 124.0, 142.0, 124.0, 64.0, 

                    75.0, 103.0, 46.0, 68.0, 87.0, 27.0,

                    73.0, 59.0, 119.0, 64.0, 111.0

            </NumberList>

        </Array>

        <Array>

            <NumberList>

                    80.0, 68.0, 24.0, 24.0, 82.0, 100.0, 55.0, 91.0,

                    87.0, 64.0, 170.0, 86.0, 202.0, 71.0, 85.0, 122.0,

                    155.0, 80.0, 71.0, 28.0, 212.0, 80.0, 24.0,

                    80.0, 169.0, 174.0, 141.0, 202.0

            </NumberList>

        </Array>

        <Array>

            <NumberList>

                    113.0, 38.0, 38.0, 28.0, 52.0, 14.0, 38.0, 94.0,

                    89.0, 99.0, 150.0, 146.0, 113.0, 38.0, 66.0, 38.0, 

                    80.0, 80.0, 99.0, 71.0, 42.0, 52.0, 33.0, 38.0,

                    24.0, 61.0, 108.0, 38.0, 28.0

            </NumberList>

        </Array>

    </Array>

    <Array id="months">

        <String value="May"/>

        <String value="June"/>

        <String value="July"/>

        <String value="August"/>

        <String value="September"/>

    </Array>

    <Array id="grad">

        <Color value="yellow"/>

        <Color value="lightblue"/>

        <Color value="lightblue"/>

        <Color value="yellow"/>

    </Array>

 

    <ChartTitle>

        <Attribute name="Title" value="Ozone Levels in Stanford by Month"/>

    </ChartTitle>

    <AxisXY>

        <BoxPlot obs="#ozone">

            <Attribute name="BoxPlotType" value="BOXPLOT_TYPE_HORIZONTAL"/>

            <Attribute name="Labels" value="#months"/>

            <Attribute name="Notch" value="true"/>

            <Attribute name="ProportionalWidth" value="true"/>

            <Bodies>

                <Attribute name="FillType" value="FILL_TYPE_GRADIENT"/>

                <Attribute name="Gradient" value="#grad"/>

            </Bodies>

            <OutsideMarkers>

                <Attribute name="MarkerType"

                value="MARKER_TYPE_HOLLOW_CIRCLE"/>

                <Attribute name="MarkerColor" value="purple"/>

            </OutsideMarkers>

            <FarMarkers>

                <Attribute name="MarkerType" value="MARKER_TYPE_ASTERISK"/>

                <Attribute name="MarkerColor" value="red"/>

            </FarMarkers>

            <Whiskers>

                <Attribute name="MarkerColor" value="darkgreen"/>

            </Whiskers>

        </BoxPlot>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="Month"/>

            </AxisTitle>

        </AxisY>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="Ozone Level"/>

            </AxisTitle>

            <Attribute name="TextFormat" value="#"/>

        </AxisX>

    </AxisXY>

</Chart>

XML Example: Pie Chart

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN" "http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <ChartTitle>

        <Attribute name="Title">Pie Chart</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <Pie y="{6,5,7,1}">

        <Attribute name="LabelType" value="LABEL_TYPE_TITLE"/>

        <Attribute name="Explode" value="0.1"/>

        <PieSlice index="0">

            <Attribute name="FillColor" value="lime"/>

            <Attribute name="Title"  value="Green"/>

            <ToolTip/>

        </PieSlice>

        <PieSlice index="1">

            <Attribute name="FillColor" value="red"/>

            <Attribute name="Title" value="Red"/>

            <ToolTip/>

        </PieSlice>

        <PieSlice index="2">

            <Attribute name="FillColor" value="blue"/>

            <Attribute name="Title" value="Blue"/>

            <ToolTip/>

        </PieSlice>

        <PieSlice index="3">

            <Attribute name="FillColor" value="yellow"/>

            <Attribute name="Title" value="Yellow"/>

            <ToolTip/>

        </PieSlice>

    </Pie>

</Chart>

XML Example: Contour Chart

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Array id="x">

        <NumberList>5,3,1,2,4</NumberList>

    </Array>

    <Array id="y">

        <NumberList>1,2,3,4,5</NumberList>

    </Array>

    <Array id="z">

        <NumberList>26,28,27,29,25</NumberList>

    </Array>

   

    <ChartTitle>

        <Attribute name="Title" value="Scattered Data Contour Plot"/>

    </ChartTitle>

    <AxisXY>

        <Contour xGrid="#x"  yGrid="#y"  zData="#z">

            <ContourLegend>

                <Attribute name="Paint" value="true"/>

            </ContourLegend>

            <ContourLevel index="5">

                <Attribute name="FillColor" value="lime"/>

            </ContourLevel>

        </Contour>

        <Data x="#x" y="#y">

            <Attribute name="DataType" value="DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_FILLED_CIRCLE"/>

            <Attribute name="MarkerColor" value="red"/>

        </Data>

    </AxisXY>

</Chart>

XML Example: Heatmap

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Array id="data">

        <Array>

            <NumberList>23, 48, 16, 56</NumberList>

        </Array>

        <Array>

            <NumberList>89, 74, 54, 32</NumberList>

        </Array>

        <Array>

            <NumberList>12, 45, 18, 9</NumberList>

        </Array>

        <Array>

            <NumberList>72, 15, 42, 92</NumberList>

        </Array>

        <Array>

            <NumberList>63, 36, 78, 29</NumberList>

        </Array>

    </Array>

 

    <ChartTitle>

        <Attribute name="Title">Sample Heatmap</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <AxisXY>

        <Heatmap xmin="0.0" xmax="5.0"

            ymin="0.0" ymax="4.0"

            zmin="0.0" zmax="100.0"

            data="#data" colormap="BLUE_RED">

            <HeatmapLegend>

                <Attribute name="Paint" value="true"/>

            </HeatmapLegend>

        </Heatmap>

    </AxisXY>

</Chart>

XML Example: Bar Chart of States

 

 

Download Code

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

<!--Data from http://www.census.gov/population/estimates/state/st-99-3.txt-->

    <Array id="population">

        <NumberList>

            4369862,619500,4778332,2551373,33145121,4056133

            3282031,753538,519000,15111244,7788240,1185497,

            1251700,12128370,5942901,2869413,2654052,3960825,

            4372035,1253040,5171634,6175169,9863775,4775508,

            2768619,5468338,882779,1666028,1809253,1201134,

            8143412,1739844,18196601,7650789,633666,11256654,

            3358044,3316154,11994016,990819,3885736,733133,

            5483535,20044141,2129836,593740,6872912,5756361,

            1806928,5250446,479602

        </NumberList>

    </Array>

    <Array id="states">

        <String value="Alabama"/>

        <String value="Alaska"/>

        <String value="Arizona"/>

        <String value="Arkansas"/>

        <String value="California"/>

        <String value="Colorado"/>

        <String value="Connecticut"/>

        <String value="Delaware"/>

        <String value="District of Columbia"/>

        <String value="Florida"/>

        <String value="Georgia"/>

        <String value="Hawaii"/>

        <String value="Idaho"/>

        <String value="Illinois"/>

        <String value="Indiana"/>

        <String value="Iowa"/>

        <String value="Kansas"/>

        <String value="Kentucky"/>

        <String value="Louisiana"/>

        <String value="Maine"/>

        <String value="Maryland"/>

        <String value="Massachusetts"/>

        <String value="Michigan"/>

        <String value="Minnesota"/>

        <String value="Mississippi"/>

        <String value="Missouri"/>

        <String value="Montana"/>

        <String value="Nebraska"/>

        <String value="Nevada"/>

        <String value="New Hampshire"/>

        <String value="New Jersey"/>

        <String value="New Mexico"/>

        <String value="New York"/>

        <String value="North Carolina"/>

        <String value="NorthDakota"/>

        <String value="Ohio"/>

        <String value="Oklahoma"/>

        <String value="Oregon"/>

        <String value="Pennsylvania"/>

        <String value="Rhode Island"/>

        <String value="South Carolina"/>

        <String value="South Dakota"/>

        <String value="Tennessee"/>

        <String value="Texas"/>

        <String value="Utah"/>

        <String value="Vermont"/>

        <String value="Virginia"/>

        <String value="Washington"/>

        <String value="West Virginia"/>

        <String value="Wisconsin"/>

        <String value="Wyoming"/>

    </Array>

 

    <Attribute name="TextColor" value="blue"/>

    <Background>

        <Attribute name="FillColor" value="white"/>

        <Attribute name="FontSize" value="24"/>

    </Background>

    <ChartTitle>

        <Attribute name="Title">Population of the United States</Attribute>

        <Attribute name="FontSize" value="24"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <AxisXY>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="Population"/>

            </AxisTitle>

            <Attribute name="TextFormat">###,###</Attribute>

        </AxisY>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="State"/>

            </AxisTitle>

            <AxisLabel>

                <Attribute name="TextAngle" value="270"/>

            </AxisLabel>

        </AxisX>

        <Bar y="#population">

            <Attribute name="BarType" value="BAR_TYPE_VERTICAL"/>

            <Attribute name="Labels" value="#states"/>

            <Attribute name="FillColor" value="red"/>

            <Attribute name="FillOutlineType" value="FILL_TYPE_NONE"/>

            <Attribute name="LabelType"  value="LABEL_TYPE_Y"/>

            <Attribute name="TextAngle" value="270"/>

            <Attribute name="TextFormat" value="0.00E0"/>

            <Attribute name="FontSize" value="10"/>

        </Bar>

    </AxisXY>

</Chart>

 

XML Example: Bar Chart

 

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <Array id="foo">

        <Array>

            <Array>

                <NumberList value="1,2,3"/>

            </Array>

            <Array>

                <NumberList value="4,5,6"/>

            </Array>

        </Array>

        <Array>

            <Array>

                <NumberList value="11,12,13"/>

            </Array>

            <Array>

                <NumberList value="14,15,16"/>

            </Array>

        </Array>

    </Array>

    <Array id="states">

        <String value="NJ"/>

        <String value="TX"/>

        <String value="CO"/>

    </Array>

    <Array id="bg">

        <Color value="lightblue"/>

        <Color value="lightblue"/>

        <Color value="yellow"/>

        <Color value="yellow"/>

    </Array>

 

    <Attribute name="FontName" value="Serif"/>

    <Attribute name="FontSize" value="14"/>

    <ChartTitle>

        <Attribute name="Title" value="Vertical Bar Chart"/>

    </ChartTitle>

    <Background>

        <Attribute name="Gradient" value="#bg"/>

    </Background>

    <Legend>

        <Attribute name="Paint" value="true"/>

        <Attribute name="FillColor" value="yellow"/>

        <Attribute name="FillType" value="FILL_TYPE_SOLID"/>

    </Legend>

    <AxisXY>

        <AxisY>

            <AxisTitle>

                <Attribute name="Title" value="Sales"/>

            </AxisTitle>

            <AxisUnit>

                <Attribute name="Title" value="(in $million)"/>

                <Attribute name="FontStyle" value="ITALIC"/>

            </AxisUnit>

        </AxisY>

        <AxisX>

            <AxisTitle>

                <Attribute name="Title" value="State"/>

            </AxisTitle>

        </AxisX>

        <Bar x="{0,1,2}"  y="#foo">

            <Attribute name="BarType" value="BAR_TYPE_VERTICAL"/>

            <Attribute name="Labels" value="#states"/>

            <BarSet index="{0,0}">

                <Attribute name="FillColor" value="blue"/>

                <Attribute name="Title" value="Blue"/>

            </BarSet>

            <BarSet index="{0,1}">

                <Attribute name="FillColor" value="red"/>

                <Attribute name="Title" value="Red"/>

            </BarSet>

            <BarSet index="{1,0}">

                <Attribute name="FillColor" value="lime"/>

                <Attribute name="Title" value="Green"/>

            </BarSet>

            <BarSet index="{1,1}">

                <Attribute name="FillColor" value="cyan"/>

                <Attribute name="Title" value="Cyan"/>

            </BarSet>

        </Bar>

    </AxisXY>

</Chart>

XML Example: Polar Plot

 

(Download Code)

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN"

"http://www.vni.com/products/jmsl/Chart.dtd">

<Chart>

    <ChartTitle>

        <Attribute name="Title">Polar Plot</Attribute>

        <Attribute name="FontSize" value="14"/>

        <Attribute name="FontStyle" value="3"/>

    </ChartTitle>

    <Polar>

        <Attribute name="LineColor" value="gold"/>

        <AxisR>

            <Attribute name="LineColor" value="orange"/>

            <AxisRLine>

                <Attribute name="LineWidth" value="3"/>

            </AxisRLine>

            <AxisRMajorTick>

                <Attribute name="LineWidth" value="3"/>

            </AxisRMajorTick>

        </AxisR>

        <AxisTheta>

            <Attribute name="Window"

            value="{-2.35619449019,2.35619449019}"/>

            <Attribute name="Number" value="7"/>

            <Attribute name="TextColor" value="red"/>

        </AxisTheta>

        <GridPolar>

            <Attribute name="LineColor" value="lightgreen"/>

        </GridPolar>

        <Data  x="{1.50,1.42,1.21,0.88,0.50,0.12,-0.21,-0.42,-0.50}"

               y="{0.00,0.39,0.79,1.18,1.57,1.96,2.36,2.75,3.14}">

            <Attribute name="LineColor" value="blue"/>

            <Attribute name="DataType"

            value="DATA_TYPE_LINE|DATA_TYPE_MARKER"/>

            <Attribute name="MarkerType" value="MARKER_TYPE_HOLLOW_SQUARE"/>

            <Attribute name="Title" value="Blue Line"/>

            <ToolTip/>

        </Data>

    </Polar>

</Chart>

 



Visual Numerics - Developers of IMSL and PV-WAVE
http://www.vni.com/
PHONE: 713.784.3131
FAX:713.781.9260