<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OFFSET Legend not functioning in GCHART in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267132#M9575</link>
    <description>&lt;P&gt;Sorry not sure what you mean re:data step, still an extreme novice with this stuff!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't defined GUNIT - I tried various settings with cm, in, pct, and no specification, all with the same (no) result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see log below&lt;/P&gt;&lt;PRE&gt;1 The SAS System                                                                                      15:07 Thursday, April 28, 2016

NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
NOTE: Writing TAGSETS.SASREPORT13(EGSRX) Body file: EGSRX
NOTE: SQL view WORK.MAXDAYSOLD has been defined.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
      


NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
      57:25   
NOTE: There were 18 observations read from the data set WORK.ONHAND_COUNT.
NOTE: There were 1 observations read from the data set WORK.MAXDAYSOLD.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      

NOTE: SQL view WORK.SORTTEMPTABLESORTED has been defined.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      


WARNING: Font CALIBRI could not be used.
         Font SIMULATE substituted for font CALIBRI.

NOTE: There were 18 observations read from the data set WORK.ONHAND_COUNT.
NOTE: There were 18 observations read from the data set WORK.SORTTEMPTABLESORTED.
NOTE: PROCEDURE GCHART used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds
      

NOTE: View WORK.SORTTEMPTABLESORTED has been dropped.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Apr 2016 22:40:47 GMT</pubDate>
    <dc:creator>rexMundi</dc:creator>
    <dc:date>2016-04-28T22:40:47Z</dc:date>
    <item>
      <title>OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/266910#M9565</link>
      <description>&lt;P&gt;I'm trying to offset a legend in my GCHART but I can't seem to get it to work!&lt;/P&gt;&lt;P&gt;I have set the position, then offset, using cm, in, pct, and combinations of these&lt;/P&gt;&lt;P&gt;I cannot seem to get the Legend to move from its position&lt;/P&gt;&lt;PRE&gt;%_eg_conditional_dropds(WORK.SORTTempTableSorted);

GOPTIONS ACCESSIBLE border hsize = 28.3cm vsize = 8cm FTEXT=Calibri CBACK=GRAYE6;
/* -------------------------------------------------------------------
   Sort data set SASApp-CLK:WORK.ONHAND_COUNT
   ------------------------------------------------------------------- */
/*find max days old*/
PROC SQL;
	CREATE VIEW WORK.MaxDaysOld AS
		SELECT MAX(T.DAYS_OLD) AS maxdays
	FROM WORK.ONHAND_COUNT as T
;
DATA _null_;
	SET WORK.MaxDaysOld;
	CALL symput("maxdays", maxdays);
	run;

PROC SQL;
	CREATE VIEW WORK.SORTTempTableSorted AS
		SELECT T.DAYS_OLD, T.STATUS, T.COUNT
	FROM WORK.ONHAND_COUNT as T
;
QUIT;
Legend99
	ACROSS=1
	POSITION = (TOP RIGHT INSIDE)
	OFFSET=(-30,-30)
	MODE=SHARE
	CFRAME=BLACK
	
	;
Axis1
	STYLE=1
	WIDTH=1
	MINOR=
	(NUMBER=1
	)
    LABEL=( "On Hand" )
    VALUE=(FONT='Calibri' )
;

Axis2
	STYLE=1
	WIDTH=1
	INTERVAL=EVEN 
	ORDER = (1 TO &amp;amp;maxdays BY 1)
	LABEL=( "Days Old" )
	VALUE=(FONT='Calibri' height=1.1)

;
TITLE;
TITLE1 "Age Range";
FOOTNOTE;
FOOTNOTE1 "Generated by Reporting and Validation Team on &amp;amp;SYSDATE";
PROC GCHART DATA=WORK.SORTTempTableSorted
;
	VBAR 
	 DAYS_OLD
 /
	SUMVAR=COUNT
	SUBGROUP=STATUS
	CLIPREF
	FRAME DISCRETE	
	TYPE=SUM
	
	COUTLINE=BLACK
	RAXIS=AXIS1
	MAXIS=AXIS2
	LEGEND=LEGEND99
	
;
/* -------------------------------------------------------------------
   End of task code
   ------------------------------------------------------------------- */
RUN; QUIT;
%_eg_conditional_dropds(WORK.SORTTempTableSorted);
TITLE; FOOTNOTE;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/266910#M9565</guid>
      <dc:creator>rexMundi</dc:creator>
      <dc:date>2016-04-28T07:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267010#M9571</link>
      <description>&lt;P&gt;Could you provide some data in the form of a data step that can duplicate the behavior. It doesn't need to be the full data set just enough records to generate a graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also what is your current setting for GUNIT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you get any messages in the log?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267010#M9571</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-28T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267028#M9572</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83127"&gt;@rexMundi﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've run your code with dummy data I created (SAS 9.4). When I modify the values in the OFFSET= option, the legend&amp;nbsp;changes its position as expected, at least with small values around zero. (-30, -30) was not suitable in conjunction with the small VSIZE&amp;nbsp;value (8cm), but this depends on the GUNIT option (good point from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; The legend was outside the visible area. The only issue I'd have with the legend is that the text ("status" and the STATUS values) is invisible because it's black text on a black background (CFRAME=BLACK).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you see the legend, but it doesn't move when you alter the OFFSET values?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 16:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267028#M9572</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-28T16:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267132#M9575</link>
      <description>&lt;P&gt;Sorry not sure what you mean re:data step, still an extreme novice with this stuff!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't defined GUNIT - I tried various settings with cm, in, pct, and no specification, all with the same (no) result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see log below&lt;/P&gt;&lt;PRE&gt;1 The SAS System                                                                                      15:07 Thursday, April 28, 2016

NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
NOTE: Writing TAGSETS.SASREPORT13(EGSRX) Body file: EGSRX
NOTE: SQL view WORK.MAXDAYSOLD has been defined.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
      


NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
      57:25   
NOTE: There were 18 observations read from the data set WORK.ONHAND_COUNT.
NOTE: There were 1 observations read from the data set WORK.MAXDAYSOLD.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      

NOTE: SQL view WORK.SORTTEMPTABLESORTED has been defined.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      


WARNING: Font CALIBRI could not be used.
         Font SIMULATE substituted for font CALIBRI.

NOTE: There were 18 observations read from the data set WORK.ONHAND_COUNT.
NOTE: There were 18 observations read from the data set WORK.SORTTEMPTABLESORTED.
NOTE: PROCEDURE GCHART used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds
      

NOTE: View WORK.SORTTEMPTABLESORTED has been dropped.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Apr 2016 22:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267132#M9575</guid>
      <dc:creator>rexMundi</dc:creator>
      <dc:date>2016-04-28T22:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267139#M9576</link>
      <description>&lt;P&gt;Strange!&lt;/P&gt;&lt;P&gt;I have tried multiple x,y values, none below 1, but none were successful in moving the legend&lt;/P&gt;&lt;P&gt;And yes it's all black at the moment - this is&amp;nbsp;not the desired effect, just something i'd declared so as to see clearly the impact of the offset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There must be some other setting overriding this one? I tried a different, new project and couldn't get the offset to work either. Something in autoexec? CSS?&lt;IMG title="Capture.PNG" alt="Capture.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/2963i92AD9E8681BC3626/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267139#M9576</guid>
      <dc:creator>rexMundi</dc:creator>
      <dc:date>2016-04-28T23:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267142#M9577</link>
      <description>&lt;P&gt;The online help says (about both the OFFSET= and the related ORIGIN= option):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Restriction&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp;Not supported by Java and ActiveX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this might explain the issue if either of these techniques is involved in your case.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267142#M9577</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-28T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267144#M9578</link>
      <description>&lt;P&gt;I had noticed that, but admit to being a bit confused - I'm using SAS EG to export the GCHART, via Report, to PDF - are Java or ActiveX required by this process?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267144#M9578</guid>
      <dc:creator>rexMundi</dc:creator>
      <dc:date>2016-04-28T23:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267146#M9579</link>
      <description>&lt;P&gt;Possibly, but I don't know for sure. I don't use SAS EG. If also the ORIGIN= option (used instead of OFFSET=) had no effect*, I would tend to believe that the restriction mentioned is the reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* or other options with the same restriction, e.g. ORDER= (this should be fairly easy to check)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267146#M9579</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-28T23:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: OFFSET Legend not functioning in GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267147#M9580</link>
      <description>&lt;P&gt;Presto! Changing the optios/results/graph setting to GIF from ActiveX has resolved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's presented a few other issues but I should be able to work through those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/OFFSET-Legend-not-functioning-in-GCHART/m-p/267147#M9580</guid>
      <dc:creator>rexMundi</dc:creator>
      <dc:date>2016-04-28T23:59:58Z</dc:date>
    </item>
  </channel>
</rss>

