JMSL Chart Programmer's Guide
XML >> Examples >> Axis Offset  Previous Page  Contents  Next Page

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>


©  Visual Numerics, Inc.  All rights reserved.  Previous Page  Contents  Next Page