view bitten/templates/bitten_chart_tests.html @ 503:a7c795920c4a

Merging trac-0.11 branch to trunk. This revision is equivalent to [571].
author wbell
date Mon, 09 Mar 2009 00:46:14 +0000
parents
children 6b4def531a4e
line wrap: on
line source
<chart xmlns:py="http://genshi.edgewall.org/">
 <chart_type>
  <value>area</value>
  <value>column</value>
 </chart_type>

 <axis_category size="10" orientation="diagonal_up"
   skip="${len(data[0]) / 6}"/>
 <axis_ticks value_ticks="false" category_ticks="true" major_thickness="2"
   minor_thickness="0" major_color="000000" position="outside"/>

 <chart_data>
  <row py:for="idx, row in enumerate(data)">
   <py:choose py:for="jdx, value in enumerate(row)">
     <string py:when="not idx or not jdx">$value</string>
     <number py:otherwise="">$value</number>
   </py:choose>
  </row>
 </chart_data>

 <chart_border color="999999" left_thickness="1" bottom_thickness="1"/>
 <chart_grid_h alpha="5" color="666666" thickness="3"/>
 <chart_pref line_thickness="2" point_shape="none"/>
 <chart_value position="cursor"/>
 <series_color>
  <color>99dd99</color>
  <color>ff0000</color>
 </series_color>

 <legend_label layout="vertical" alpha="60"/>
 <legend_rect x="60" y="50" width="10"/>

 <draw>
  <text width="320" height="40" h_align="center" v_align="bottom"
        size="12">$title</text>
 </draw>

</chart>
Copyright (C) 2012-2017 Edgewall Software