Examples

Real Examples
Basic Examples

los_bar-population.xml

Download mugl: los_bar-population.xml Open in Tester
<mugl>
  <background color="0xFAFAEB"/>
    <window margin="0" padding="5" border="0" bordercolor="0x000000"/>
    <plotarea margintop="10" marginleft="60" marginbottom="25" marginright="15"/>

    <horizontalaxis id="Buncombe County" min="0" max="8" length="1" base="-1,-1" anchor="-1">
      <labels densityfactor="0.5" format="" spacing="1000"/>
      <pan allowed="no"/>
      <zoom allowed="no"/>
      <title position="-270 -10"/>
    </horizontalaxis>

    <horizontalaxis id="Madison County" min="0" max="8" length="1" base="-1,-1" anchor="-1">
      <labels densityfactor="0.5" format="" spacing="1000"/>
      <pan allowed="no"/>
      <zoom allowed="no"/>
      <title position="-90 -10"/>
    </horizontalaxis>

    <horizontalaxis id="Henderson County" min="0" max="8" length="1" base="-1,-1" anchor="-1">
      <labels densityfactor="0.5" format="" spacing="1000"/>
      <pan allowed="no"/>
      <zoom allowed="no"/>
      <title position="90 -10"/>
    </horizontalaxis>

    <horizontalaxis id="Transylvania County" min="0" max="8" length="1" base="-1,-1" anchor="-1">
      <labels densityfactor="0.5" format="" spacing="1000"/>
      <pan allowed="no"/>
      <zoom allowed="no"/>
      <title position="270 -10"/>
    </horizontalaxis>

    <verticalaxis   id="y"  min="0" max="240000" length="1">
      <title anchor="0 -4" angle="90" position="-40 0">Number of People</title>
      <labels densityfactor="0.1" format="%.0f" spacing="5000 1000 500 100 50 20 10 5 2 1"/>
      <pan min="0"/>
    </verticalaxis>

    <plot>
      <legend label="Total Population"/>
      <horizontalaxis ref="Buncombe County">
        <variable ref="x"/>
      </horizontalaxis>
      <verticalaxis ref="y">
        <variable ref="y1"/>
      </verticalaxis>
      <renderer type="bar">
        <option name="linecolor" value="0xC99C14"/>
        <option name="fillcolor" value="0xE0C77B"/>
        <option name="barwidth" value="0.5"/>
        <option name="baroffset" value="0"/>
        <option name="barbase" value="0"/>
        <option name="hidelines" value="2"/>
      </renderer>
    </plot>

    <plot>
      <legend label="Population White"/>
      <horizontalaxis ref="Buncombe County">
        <variable ref="x"/>
      </horizontalaxis>
      <verticalaxis ref="y">
        <variable ref="y2"/>
      </verticalaxis>
      <renderer type="bar">
        <option name="linecolor" value="0x4C1670"/>
        <option name="fillcolor" value="0x886E99"/>
        <option name="barwidth" value="0.5"/>
        <option name="baroffset" value="45"/>
        <option name="barbase" value="0"/>
        <option name="hidelines" value="2"/>
      </renderer>
    </plot>

    <data>
      <variables>
        <variable column="0" id="x"/>
        <variable column="1" id="y1" missingvalue="-9000" missingop="le"/>
        <variable column="2" id="y2" missingvalue="-9000" missingop="le"/>
      </variables>
      <values>
0.5, 238318, 208192
2.5, 20764, 20035
4.5, 106740, 94914
6.5, 33090, 30577
      </values>
    </data>
</mugl>