|
|
Hi,
everyone can run the syntax below and test this.
I want to see Percent labels in this graph with only one decimal number
(and a space before %).
I run this syntax, add Data Label Values and get two decimals. Not good!
Can't change anything in Chart Editor.
OK, I save a Chart template and edit it. I set:
<numberFormat maximumFractionDigits="1" minimumFractionDigits="1"
suffix=" %" useGrouping="true"/>
I recreate a new graph without labels and try to apply template.
Nothing!
Can anyone help?
Regards
Mitja
GET
FILE='C:\Program Files\SPSS\Employee data.sav'.
DATASET NAME DataSet1 WINDOW=FRONT.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: jobcat=col(source(s), name("jobcat"), unit.category())
DATA: gender=col(source(s), name("gender"), unit.category())
GUIDE: axis(dim(1), label("Employment Category"))
GUIDE: axis(dim(2), label("Percent"))
GUIDE: legend(aesthetic(aesthetic.color.interior))
SCALE: linear(dim(2), include(0))
SCALE: cat(aesthetic(aesthetic.color.interior))
ELEMENT: interval.stack(position(summary.percent.count(("jobcat" * 1 *
gender),
base.coordinate(dim(1)))), color.interior(jobcat),
shape.interior(shape.square))
END GPL.
|