Newer
Older
weather-servlet / src / main / resources / rain.xml
<rrd_graph_def>
  <options>
    <vertical_label>mm/hr</vertical_label>
    <units_exponent>0</units_exponent>
  </options>
  <datasources>
    <def>
      <name>rainRate</name>
      <rrd>${rrdFile}</rrd>
      <source>rainRate</source>
      <cf>AVERAGE</cf>
    </def>
    <cdef>
      <name>mmhr</name>
      <rpn>rainRate,25.4,*</rpn>
    </cdef>
  </datasources>
  <graph>
    <area>
      <datasource>mmhr</datasource>
      <color>#0000FF</color>
      <legend>Rain rate</legend>
    </area>
  </graph>
</rrd_graph_def>