Examples

Real Examples
Basic Examples

test-graph4.xml

Download mugl: test-graph4.xml Open in Tester
<mugl>

  <window border="0" margin="0" padding="0"/>
  <legend visible="false"/>
  <background color="0x111111"/>

  <horizontalaxis id="Date" type="datetime" min="199910" max="201210">
    <labels densityfactor="0.5" format="%n %y" spacing="10Y 5Y 1Y 6M 4M 2M 1M" angle="45" position="-11,-14" anchor="0,1" color="0xeeeeee"/>
    <title/>
    <grid color="0x333333"/>
  </horizontalaxis>

  <verticalaxis   id="y"  min="-4.5" max="4.5">
    <labels densityfactor="0.5" format="%.1f" spacing="10000 5000 2000 1000 100 50 20 10 5 2 1 0.5 0.25 0.1" color="0xeeeeee"/>
    <title/>
    <grid color="0x333333"/>
  </verticalaxis>


  <plot>
    <horizontalaxis ref="Date">
      <variable ref="datetime"/>
    </horizontalaxis>
    <verticalaxis ref="y">
      <variable ref="y"/>
    </verticalaxis>
    <renderer type="band">
      <option name="linecolor" value="0xFAFAAC"/>
      <option name="linewidth" value="2"/>
      <option name="fillcolor" value="0xFFCF4D"/>
      <option name="fillopacity" value=".5"/>
    </renderer>
  </plot>

    <data>
      <variables>
        <variable column="0" type="datetime" id="datetime"/>
        <variable column="1" id="y"/>
        <variable column="2" id="y1"/>
      </variables>
      <values>
    200001,0.700,-0.7
    200002,1.600,-1.6
    200003,1.000,-1
    200004,1.200,-1.2
    200005,0.200,-0.2
    200006,-0.60,0.6
    200007,-0.40,0.4
    200008,0.400,-0.4
    200009,1.000,-1
    200010,1.000,-1
    200011,2.000,-2
    200012,0.700,-0.7
    200101,1.100,-1.1
    200102,1.500,-1.5
    200103,0.500,-0.5
    200104,-0.10,0.1
    200105,-0.80,0.8
    200106,-0.10,0.1
    200107,-0.40,0.4
    200108,-1.00,01
    200109,0.200,-0.2
    200110,-0.40,0.4
    200111,0.700,-0.7
    200112,-1.20,01.2
    200201,0.400,-0.4
    200202,0.900,-0.9
    200203,-0.90,0.9
    200204,-0.40,0.4
    200205,-1.20,01.2
    200206,-0.70,0.7
    200207,-0.70,0.7
    200208,-1.60,01.6
    200209,-0.70,0.7
    200210,-0.70,0.7
    200211,-0.60,0.6
    200212,-1.40,01.4
    200301,-0.40,0.4
    200302,-1.20,01.2
    200303,-1.00,01
    200304,-0.40,0.4
    200305,-0.60,0.6
    200306,-1.10,01.1
    200307,0.200,-0.2
    200308,-0.30,0.3
    200309,-0.10,0.1
    200310,-0.30,0.3
    200311,-0.40,0.4
    200312,1.100,-1.1
    200401,-1.70,01.7
    200402,1.100,-1.1
    200403,-0.20,0.2
    200404,-1.30,01.3
    200405,0.900,-0.9
    200406,-1.30,01.3
    200407,-0.70,0.7
    200408,-0.80,0.8
    200409,-0.40,0.4
    200410,-0.30,0.3
    200411,-0.90,0.9
    200412,-1.10,01.1
    200501,0.300,-0.3
    200502,-4.10,04.1
    200503,-0.20,0.2
    200504,-1.00,01
    200505,-1.20,01.2
    200506,0.100,-0.1
    200507,0.000,0
    200508,-0.80,0.8
    200509,0.400,-0.4
    200510,1.100,-1.1
    200511,-0.30,0.3
    200512,-0.20,0.2
    200601,1.800,-1.8
    200602,-0.20,0.2
    200603,1.400,-1.4
    200604,0.900,-0.9
    200605,-0.80,0.8
    200606,-0.70,0.7
    200607,-0.80,0.8
    200608,-1.60,01.6
    200609,-0.70,0.7
    200610,-1.70,01.7
    200611,0.100,-0.1
    200612,-0.500,0.5
    200701,-1.100,1.1
    200702,-0.500,0.5
    200703,-0.400,0.4
    200704,-0.400,0.4
    200705,-0.400,0.4
    200706,0.200,-0.2
    200707,-0.50,0.5
    200708,0.100,-0.1
    200709,0.200,-0.2
    200710,0.600,-0.6
    200711,0.900,-0.9
    200712,1.800,-1.8
    200801,1.900,-1.9
    200802,2.700,-2.7
    200803,1.100,-1.1
    200804,0.600,-0.6
    200805,-0.30,0.3
    200806,0.300,-0.3
    200807,0.200,-0.2
    200808,0.800,-0.8
    200809,1.500,-1.5
    200810,1.300,-1.3
    200811,1.500,-1.5
    200812,1.500,-1.5
    200901,1.200,-1.2
    200902,1.800,-1.8
    200903,-0.10,0.1
    200904,0.700,-0.7
    200905,-0.40,0.4
    200906,-0.30,0.3
    200907,0.100,-0.1
    200908,-0.70,0.7
    200909,0.300,-0.3
    200910,-1.70,01.7
    200911,-0.80,0.8
    200912,-1.00,01
    201001,-1.50,01.5
    201002,-2.10,02.1
    201003,-1.40,01.4
    201004,1.200,-1.2
    201005,0.800,-0.8
    201006,0.100,-0.1
    201007,2.000,-2
    201008,1.700,-1.7
    201009,2.600,-2.6
    201010,1.800,-1.8
    201011,1.500,-1.5
    201012,3.200,-3.2
    201101,2.300,-2.3
    201102,2.700,-2.7
    201103,2.500,-2.5
    201104,1.900,-1.9
    201105,0.400,-0.4
    201106,0.200,-0.2
    201107,1.000,-1
    201108,0.400,-0.4
    201109,1.000,-1
    201110,0.800,-0.8
    201111,1.100,-1.1
    201112,2.500,-2.5
    201201,1.100,-1.1
    201202,0.500,-0.5
    201203,0.700,-0.7
    201204,-0.30,0.3
    201205,0.000,0
    201206,-0.40,0.4
    201207,0.000,0
    201208,-0.20,0.2
      </values>
    </data>
</mugl>