Styling maps with charts- and diagrams
In version 1.9 of Geopublisher and AtlasStyler, we added a feature to define dynamic chart symbols for styling maps. Piecharts, barcharts (horizontal/vertical stacked/grouped), and linecharts are supported.
This new feature is build ontop of the GeoServer chart extension - a little secret jewel hidden in Geotools since 2009. Creating SLDs with dynamic chart-symbols is not part of the OGC SLD or SE standards, so the styles will only work in Geopublisher atlases and WMS powered by Geoserver.
What it's all about!?
Imagine you have a table with numeric attributes (e.g. from a Shapefile or a PostGIS datastore). To style it with a bar-chart in each polygon follow these steps (click on the image to see it in full size):
When using bar-charts, the maximum bar size always equals the value 100. If your data is distributed with a maximum of 1000, you should enter that value in the "maximum value" field. The SLD will then scale all your data to fit the bars.
Using this feature with Geoserver:
SLDs created for dynamic charts will not run on Geoserver out of the box. You will have to drop the following JAR-files into the WEB-INF/lib directory and restart Geoserver: JARs for GS v2.0.x, JARs for Geoserver 2.1.x.