Greetings, I am working with version 21. I create a clustered bar chart. After
some editing in chart editor, including adding data labels on the bars, I save
it as a template. I make sure that “Data value labels” is selected
in the Save Chart Template dialog box because I want the data labels formatted
in a certain way. When I apply this template to the next clustered bar chart I
create, the data labels do not appear; everything else is formatted as desired,
but the data labels are absent. Has anybody encountered this problem? Is there a solution (other than
redoing the editing that appears not to have been saved)? Thanks in advance, Dominic ************************************************* [hidden email]
|
Dominic et al.
I believe that there are still some aspects of formatting / changes that are made to charts which are not properly stored in Chart Templates. I first encountered the problem with the angle of labels on a chart which had been grouped into columns. In order to improve appearance I had ‘custom angled’ them to 45 degrees. I cannot get that to ‘stick’. There were a number of other problems I encountered and some of those appear to be resolved in 22 but I suggest that you gather the evidence and submit a problem report in the hope it is sorted in 23 !!
From: SPSSX(r) Discussion [mailto:[hidden email]]
On Behalf Of Dominic Lusinchi
Greetings,
I am working with version 21. I create a clustered bar chart. After some editing in chart editor, including adding data labels on the bars, I save it as a template. I make sure that “Data value labels” is selected in the Save Chart Template dialog box because I want the data labels formatted in a certain way. When I apply this template to the next clustered bar chart I create, the data labels do not appear; everything else is formatted as desired, but the data labels are absent.
Has anybody encountered this problem? Is there a solution (other than redoing the editing that appears not to have been saved)?
Thanks in advance, Dominic ************************************************* [hidden email]
The University of Aberdeen is a charity registered in Scotland, No SC013683. |
... or you use ggplot2 to produce this: http://postimg.org/image/ghi832szj/
IMHO that's better than storing part of the image layout in your (GPL) code, part in the .sgt, part in your head. � * sample data. set rng=mt mtindex=43210. input program. +numeric id (n9) gender (f1) year (f4). +loop id = 1 to 100. +� � � compute gender = trunc(rv.uniform(0, 2)). +� � � compute year = trunc(rv.uniform(1990, 2000)). +end case. +end loop. +end file. end input program. if ( missing(id) ) id = lag(id). execute. � * code for clustered bar graph. begin program r. require("ggplot2") || install.packages("ggplot2") df <- spssdata.GetDataFromSPSS() require("ggplot2") p <- ggplot(df) p <- p + geom_histogram(aes(factor(year), fill=factor(gender)), position="dodge") p <- p + xlab("Year") + ylab("Count") + opts(title="Cool graph\n") p <- p + scale_fill_discrete(name="Gender", breaks=c(0, 1), labels=c("male","female")) graph <- file.path(Sys.getenv("temp"), "graph.png") ggplot2::ggsave(file=graph, plot=p, dpi=100) spssRGraphics.Submit(graph) end program. 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? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~� From: "Lemon, John" <[hidden email]> >To: [hidden email] >Sent: Friday, October 18, 2013 9:15 AM >Subject: Re: [SPSSX-L] data labels not saved in template > > > >Dominic et al. >� >I believe that there are still some aspects of formatting / changes that are made to charts which are not properly stored in Chart Templates. I first encountered the problem with the angle of labels on a chart which had been grouped into columns. In order to improve appearance I had ‘custom angled’ them to 45 degrees. I cannot get that to ‘stick’. There were a number of other problems I encountered and some of those appear to be resolved in 22 but I suggest that you gather the evidence and submit a problem report in the hope it is sorted in 23 !! >� >Best Wishes >� >John S. Lemon >IT Services - Student Liaison Officer >University of Aberdeen >Edward Wright Building >Tel:� +44 1224 273350 >� >DIT news for Students >� >From:SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Dominic Lusinchi >Sent: 18 October 2013 07:42 >To: [hidden email] >Subject: data labels not saved in template >� >Greetings, >� >I am working with version 21. I create a clustered bar chart. After some editing in chart editor, including adding data labels on the bars, I save it as a template. I make sure that “Data value labels” is selected in the Save Chart Template dialog box because I want the data labels formatted in a certain way. When I apply this template to the next clustered bar chart I create, the data labels do not appear; everything else is formatted as desired, but the data labels are absent. >� >Has anybody encountered this problem? Is there a solution (other than redoing the editing that appears not to have been saved)? >� >Thanks in advance, >Dominic >************************************************* >Dominic Lusinchi > >Far West Research >Statistical Consulting > >San Francisco, California > >Telephone/Fax: 1-415-664-3032 >Skype: fwr.dl >Email: [hidden email] >Web: www.farwestresearch.com/staff/dl/dlcv.html > >Instructor, UC Berkeley Extension: >[hidden email] >Introduction to Statistical Analysis with SPSS >************************************************* >� > > > >The University of Aberdeen is a charity registered in Scotland, No SC013683. > > ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |