|
Hi Everyone,
I have a line graph that compares the cumulative count of two series. I am running 17. I want to, in my sytnax, create a chart always has a reference line on my horizontal axis (at a place I set) and data labels for the last point. Is this possible to do in the GPL portion of the syntax so I do not have to point and click the graph every time? Thanks, Brock ===================== 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 |
|
Hi Everyone,
Just wanted to follow up to see if putting a data label on the last mark is possible. Regards, Brock ===================== 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 |
|
See if the map function might help.
-----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Brock Sent: Monday, May 18, 2009 7:11 AM To: [hidden email] Subject: Re: Graph Syntax Hi Everyone, Just wanted to follow up to see if putting a data label on the last mark is possible. Regards, Brock ===================== 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 ===================== 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 |
|
In reply to this post by Brock-15
Thanks for getting back to me.
I looked in the GPL syntax (I never heard of the map function) and saw this example, but it was for a bar chart. SCALE: cat(aesthetic(aesthetic.color), map(("IL", color.blue))) While I am getting better at syntax, I am not sure how I would adapt it for my two series which I am plotting as a line. Below is what the Chart Builder generated for GPL. In short, I am not sure how I would add this to ensure that it labels the cumulative count for the last data point on each series. Many thanks for your help! - Brock BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: days=col(source(s), name("days")) DATA: COUNT=col(source(s), name("COUNT")) DATA: EM_TERM_CODE=col(source(s), name("EM_TERM_CODE"), unit.category()) GUIDE: axis(dim(1), label("Days melted before 9/1")) GUIDE: axis(dim(2), label("Cumulative Frequency")) GUIDE: legend(aesthetic(aesthetic.color.interior), label("EM_TERM_CODE")) ELEMENT: line(position(summary.sum.cumulative(days*COUNT)), color.interior(EM_TERM_CODE), missing.wings()) END GPL. ===================== 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 |
