Hi,
I am trying to create a chloropleth of the number of persons (data) [aant_inw] by municipality_code (key) [gem_code]. I converted a .shp + .dbf to an .smz,
then I genererated the code below. However, I keep getting the error "An I/O exception occurred" (in red font).
What am I doing wrong? It is the first time that I am using this feature, so it might be something simple.
VARIABLE LEVEL aant_inw (ordinal). /* otherwise the graphboard template chooser won't let me select a chloropleth of values.
GGRAPH
/GRAPHDATASET NAME="graphdataset"
VARIABLES=aant_inw[LEVEL=ordinal] gm_code[LEVEL=nominal]
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="Choropleth of Values"[LOCATION=LOCAL]
MAPPING( "color"="aant_inw"[DATASET="graphdataset"]
"Data_Key"="gm_code"[DATASET="graphdataset"]))
VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]
LABEL='CHOROPLETH OF VALUES: gm_code-aant_inw'
DEFAULTTEMPLATE=NO
VIZMAP="gem_2011_gn1"[LOCATION=LOCAL TYPE=DATA mapkey="GM_CODE" SHOWALLFEATURES=YES].
Thank you in advance!
Regards,
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~