[mapserver-commits] r8439 - trunk/docs/output

svn at osgeo.org svn at osgeo.org
Sat Jan 17 10:27:10 EST 2009


Author: tbonfort
Date: 2009-01-17 10:27:10 -0500 (Sat, 17 Jan 2009)
New Revision: 8439

Modified:
   trunk/docs/output/dynamic_charting.txt
Log:
update with attribute binding for size


Modified: trunk/docs/output/dynamic_charting.txt
===================================================================
--- trunk/docs/output/dynamic_charting.txt	2009-01-16 19:57:59 UTC (rev 8438)
+++ trunk/docs/output/dynamic_charting.txt	2009-01-17 15:27:10 UTC (rev 8439)
@@ -8,7 +8,7 @@
 :Contact:      thomas.bonfort at gmail.com
 :Revision: $Revision$
 :Date: $Date$
-:Last Updated: 2007/10/23
+:Last Updated: 2009/01/17
 
 .. contents:: Table of Contents
     :depth: 2
@@ -85,10 +85,28 @@
         ...
     END
 
-For those living on the bleeding edge, the diameter of a pie chart can be
-bound to an attribute starting from trunk version of 2007-10-20. Details
-located at http://trac.osgeo.org/mapserver/ticket/2136
+From version 5.2 and onwards, the diameter of a pie chart can be bound to an
+attribute,using the CHART_SIZE_RANGE PROCESSING attribute:
 
+.. code-block:: mapfile
+
+  PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval maxval"
+
+where:
+
+ - itemname is the name of the attribute that drives the chart size (e.g.
+   total_sales)
+
+ - minsize and maxsize are the minimum and maximum chart size values in pixels
+   (e.g. "10 100")
+
+ - minval and maxval are the minimum values of the attribute that correspond to
+   chart sizes of minsize and maxsize (e.g. 10000 1000000).
+
+If the attribute value is smaller than 'minval' then the chart size will be
+minsize pixels, and if the attribute value is larger than maxval, the chart
+size will be maxsize pixels.
+
 Specifying the Values to be Plotted
 ...............................................................................
 
@@ -240,4 +258,4 @@
 these directives is included, the other will be automatically adjusted for 
 each shape to include at least the origin, i.e. the graphs for all the 
 shapes will be in the same scale *only if* all the values are of the 
-same sign (positive or negative).
\ No newline at end of file
+same sign (positive or negative).



More information about the mapserver-commits mailing list