[mapserver-users] null value renders in pie chart

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Jan 3 08:43:23 PST 2013


Hi,
I created a layer that renders pie chart with 4 classes.

The problem is some classes are render in the pie even if there is no data 
(null). That means I always have 4 slices in the pie.
How can I remove the slices with null value?

I tried using EXPRESSION without success. I specified > 0 since I think 
"is not null" is not supported
CLASS
        NAME "Cri"
        EXPRESSION ([cri] > 0)
        STYLE
                SIZE [cri]
                COLOR 215 48 39
        END
END

thanks for your help,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130103/95cbbadf/attachment.htm>


More information about the MapServer-users mailing list