Examples

Real Examples
Basic Examples

dashboard-ghouse.xml

Download mugl: dashboard-ghouse.xml Open in Tester
<mugl>
  <background color="0xFFFFFF"/>
  <window border="0" margin="0" padding="0"/>
  <legend visible="false"/>
  <plotarea marginbottom="50" marginleft="60" marginright="25" margintop="10"/>
  
  <horizontalaxis highlightstyle="labels" id="datetime" linewidth="0" max="2009" min="1980" tickmax="0" tickmin="-4" type="datetime">
    <labels>
      <label format="%Y" spacing="200Y 100Y 50Y 20Y 10Y 5Y 2Y 1Y"/>
      
    </labels>
    <grid/>
    <title anchor="0 5" position="-10 0">Year</title>
  </horizontalaxis>

  <verticalaxis highlightstyle="labels" id="col1" linewidth="0" max="1.600" min="0.600" tickmax="0" tickmin="-4" type="number">
    <labels densityfactor="1.0" format="%.2f" spacing="100 50 20 10 5 2 1 0.5 0.2 0.1 0.05 0.02 0.01"/>
    <grid/>		
    <title anchor="0 -4" angle="90" position="-15 -10">Annual Greenhouse Gas Index (AGGI)</title>
    
    
  </verticalaxis>

  <plot>
    <horizontalaxis ref="datetime">
      <variable ref="datetime"/>
    </horizontalaxis>
    <verticalaxis ref="col1">
      <variable ref="col1"/>
    </verticalaxis>
    <renderer type="fill">
      <option name="fillcolor" value="0x7e2b18"/>
      <option name="fillopacity" value="0.1"/>
      <option name="linecolor" value="0x41160c"/>
      <option name="linewidth" value="1"/>		
    </renderer>
	<datatips format="{0}: {1}">
      <variable format="'%y"/>
      <variable format="%.3f"/>
    </datatips>
  </plot>


  <data>
    <variables>
      <variable column="0" id="datetime" type="datetime"/>
      <variable column="1" id="col1"/>
    </variables>
    <values>1979,0.79
    1980,0.81
    1981,0.83
    1982,0.84
    1983,0.86
    1984,0.88
    1985,0.90
    1986,0.92
    1987,0.94
    1988,0.96
    1989,0.98
    1990,1.00
    1991,1.02
    1992,1.03
    1993,1.03
    1994,1.05
    1995,1.06
    1996,1.08
    1997,1.09
    1998,1.11
    1999,1.13
    2000,1.14
    2001,1.15
    2002,1.17
    2003,1.19
    2004,1.20
    2005,1.21
    2006,1.23
    2007,1.24
    2008,1.26
    2009,1.27
    2010,1.29
    </values>
  </data>
</mugl>