Examples

Real Examples
Basic Examples

test-graph3.xml

Download mugl: test-graph3.xml Open in Tester
<mugl>
  <background color="0xF5FAFA"/>
  <window border="0" margin="0" padding="0"/>
  <legend visible="false"/>
  <plotarea marginbottom="25" marginleft="40" marginright="15" margintop="10"/>

  <horizontalaxis  color="0x3A3D3D" highlightstyle="labels" id="yearaxis" linewidth="0" max="2020" min="1870" tickmax="0" tickmin="-4" type="datetime">
    <labels color="0x3A3D3D">
      <label format="%Y" spacing="1000Y 500Y 200Y 100Y 50Y 20Y 10Y 5Y 2Y 1Y"/>
      <label format="%n %y" spacing="6M 3M 2M 1M"/>
    </labels>
    <grid color="0xDAE0E0"/>
    <title/>
  </horizontalaxis>

  <verticalaxis  color="0x3A3D3D" highlightstyle="labels" id="tempaxis" linewidth="0" max="1" min="0" tickmax="0" tickmin="-4" type="number">
    <labels densityfactor="0.5" format="%.2f" color="0x3A3D3D" spacing="50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.02 0.01"/>
    <grid color="0xDAE0E0"/>
    <title/>
  </verticalaxis>

  <plot>
    <horizontalaxis ref="yearaxis">
      <variable ref="year"/>
    </horizontalaxis>
    <verticalaxis ref="tempaxis">
      <variable ref="temp"/>
    </verticalaxis>
    <renderer type="pointline">
      <option name="linecolor" value="0xad1fff"/>
      <option name="linewidth" value="1"/>
      <option name="pointoutlinecolor" value="0xad1fff"/>
      <option name="pointsize" value="1.5"/>
      <option name="pointshape" value="diamond"/>
      <option name="pointcolor" value="0xad1fff"/>
    </renderer>
    <datatips format="{0}: {1}">
      <variable format="'%y"/>
      <variable format="%.1f"/>
    </datatips>
  </plot>

<plot>
    <horizontalaxis ref="yearaxis">
      <variable ref="year"/>
    </horizontalaxis>
    <verticalaxis ref="tempaxis">
      <variable ref="temp1"/>
    </verticalaxis>
    <renderer type="pointline">
      <option name="linecolor" value="0xEB9800"/>
      <option name="linewidth" value="1"/>
      <option name="pointoutlinecolor" value="0xEB9800"/>
      <option name="pointsize" value="1.5"/>
      <option name="pointcolor" value="0xEB9800"/>
    </renderer>
    <datatips format="{0}: {1}">
      <variable format="'%y"/>
      <variable format="%.1f"/>
    </datatips>
  </plot>

  <data>
    <variables>
      <variable column="0" id="year" type="datetime"/>
      <variable column="1" id="temp"/>
      <variable column="2" id="temp1"/>
    </variables>
    <values>
      1880,0.1637,0.975
      1881,0.1114,0.962
      1882,0.1269,0.961
      1883,0.1768,0.954
      1884,0.2375,0.955
      1885,0.2095,0.956
      1886,0.1911,0.963
      1887,0.2640,0.942
      1888,0.1771,0.935
      1889,0.0973,0.928
      1890,0.3116,0.857
      1891,0.2784,0.834
      1892,0.3144,0.821
      1893,0.3541,0.822
      1894,0.3126,0.825
      1895,0.2516,0.824
      1896,0.1102,0.821
      1897,0.1526,0.840
      1898,0.2825,0.862
      1899,0.1635,0.883
      1900,0.1193,0.889
      1901,0.1780,0.885
      1902,0.2660,0.797
      1903,0.3559,0.788
      1904,0.4174,0.772
      1905,0.2963,0.771
      1906,0.2460,0.774
      1907,0.3870,0.768
      1908,0.4337,0.762
      1909,0.4369,0.749
      1910,0.4187,0.758
      1911,0.4416,0.754
      1912,0.3856,0.742
      1913,0.3534,0.758
      1914,0.1914,0.688
      1915,0.1127,0.677
      1916,0.3122,0.654
      1917,0.3456,0.661
      1918,0.2418,0.632
      1919,0.2613,0.625
      1920,0.2360,0.615
      1921,0.1676,0.656
      1922,0.2561,0.6822
      1923,0.2336,0.655
      1924,0.2284,0.625
      1925,0.1593,0.647
      1926,0.0643,0.587
      1927,0.1311,0.528
      1928,0.1331,0.50
      1929,0.2535,0.565
      1930,0.0629,0.5525
      1931,0.0372,0.555
      1932,0.0569,0.57
      1933,0.1995,0.555
      1934,0.0549,0.525
      1935,0.0859,0.635
      1936,0.0596,0.625
      1937,0.0519,0.685
      1938,0.0803,0.678
      1939,0.0659,0.648
      1940,0.1114,0.659
      1941,0.1634,0.626
      1942,0.1162,0.65
      1943,0.1120,0.646565
      1944,0.2205,0.64
      1945,0.0919,0.6825
      1946,0.0428,0.69654
      1947,0.0434,0.768
      1948,0.0549,0.756
      1949,0.0681,0.72165
      1950,0.1579,0.7356
      1951,0.16,0.6556
      1952,0.413,0.654
      1953,0.1183,0.6851
      1954,0.0954,0.64651
      1955,0.1117,0.61561
      1956,0.1704,0.6256
      1957,0.0708,0.63
      1958,0.1218,0.65654
      1959,0.0785,0.654
      1960,0.291,0.6861
      1961,0.1057,0.653
      1962,0.1323,0.622
      1963,0.1504,0.616564
      1964,0.1139,0.54
      1965,0.0485,0.516
      1966,0.094,0.5823
      1967,0.0246,0.57486
      1968,0.119,0.644
      1969,0.1167,0.61
      1970,0.0710,0.6351
      1971,0.288,0.62664
      1972,0.0580,0.63984
      1973,0.1931,0.431
      1974,0.0509,0.4365
      1975,0.0188,0.4689
      1976,0.0743,0.494
      1977,0.1790,0.498651
      1978,0.1001,0.47
      1979,0.1867,0.44894
      1980,0.2307,0.4584
      1981,0.2724,0.4261
      1982,0.1533,0.40
      1983,0.3179,0.4484
      1984,0.1266,0.47894
      1985,0.1078,0.45
      1986,0.1969,0.4084
      1987,0.3296,0.4015
      1988,0.3409,0.4116
      1989,0.2657,0.4065
      1990,0.3995,0.40498
      1991,0.3771,0.404
      1992,0.2349,0.30615
      1993,0.2644,0.3032
      1994,0.3257,0.30654
      1995,0.4486,0.30654
      1996,0.3178,0.30984
      1997,0.5116,0.30465
      1998,0.6307,0.319
      1999,0.4529,0.3184
      2000,0.4277,0.34984
      2001,0.5495,0.35
      2002,0.6116,0.32456
      2003,0.6203,0.3065
      2004,0.5756,0.3897
      2005,0.6474,0.3
      2006,0.5926,0.3245
      2007,0.5866,0.2565
      2008,0.5085,0.2898
      2009,0.5928,0.38
      2010,0.6558,0.37165
      2011,0.5341,0.34897
    </values>
  </data>
</mugl>