Hello again :)
I got problem with maps.
I don't know how to save template or set some map options (color, legend
place etc.) by syntax.
data for example.
data list list
/id(A60).
begin data.
'Alberta'
'British Columbia'
'Manitoba'
'New Brunswick'
'Newfoundland and Labrador'
'Northwest Territories'
'Nova Scotia'
'Nunavut'
'Ontario'
'Prince Edward Island'
'Quebec'
'Saskatchewan'
'Yukon'
end data.
EXECUTE.
dataset name b1.
DATASET ACTIVATE b1.
compute var2=trunc(RV.UNIFORM(1, 4), 1).
execute.
value labels
/var2
1 'low level'
2 'average'
3 'high level'
.
* and I want to do graph like this. But I need to use GUI to personalize
look , change color, border, background etc. .
--
*Is it possible to save this options as template, or maybe this can be added
via syntax???
*I noticed that templates in this graph module are in different format (not
.sgt) .
Any advices???
DATASET ACTIVATE b1.
GGRAPH
/GRAPHDATASET NAME="graphdataset"
VARIABLES=var2[LEVEL=nominal] id[LEVEL=nominal]
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="Polygon Overlay Map"[LOCATION=LOCAL]
MAPPING( "Data_Key"="id"[DATASET="graphdataset"]
"color"="var2"[DATASET="graphdataset"]
"Subtitle"='GRAPH for example' "Title"='CANADA'))
VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]
LABEL='POLYGON OVERLAY MAP: id-var2'
DEFAULTTEMPLATE=NO
VIZMAP="CanadaProvinces2011"[LOCATION=LOCAL TYPE=DATA mapkey="English -
PRENAME"
SHOWALLFEATURES=NO]
VIZMAP="CanadaProvinces2011"[LOCATION=LOCAL TYPE=REFERENCE ].