[mapserver-users] expressions in a chart layer
Mario Basa
mario.basa at gmail.com
Mon Aug 8 02:39:16 PDT 2011
Hello.
Do EXPRESSIONS work in a chart layer? I have been trying something
like the one below, and the postgis layer only has 2010 and 2011 data
and yet the 2012 portion of the chart keeps on appearing. If
Expressions do not work, is there any other method of filtering the
data before creating the pie char. Thanks!
TYPE CHART
PROCESSING "CHART_SIZE=20"
PROCESSING "CHART_TYPE=PIE"
CLASS
NAME "2010"
EXPRESSION ([obj_yyyy]=2010)
STYLE
SIZE 5
COLOR 234 192 156
OUTLINECOLOR 10 10 10
END
END
CLASS
NAME "2011"
EXPRESSION ([obj_yyyy]=2011)
STYLE
SIZE 20
COLOR 112 78 221
OUTLINECOLOR 10 10 10
END
END
CLASS
NAME "2012"
EXPRESSION ([obj_yyyy]=2012)
STYLE
SIZE 60
COLOR 133 178 199
OUTLINECOLOR 10 10 10
END
END
More information about the MapServer-users
mailing list