<?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: tickdisplaylist with dynamic variable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/950970#M25139</link>
    <description>&lt;P&gt;You might get a better response by 1) providing data or use of a SAS supplied data set like SASHELP.CLASS or CARS, 2) a complete template code and 3) the associated Proc SGRender.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any defined Dynamic variable that is used with TICKDISPLAYLIST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple example with a single plot would probably be the starting point and just the TICKDISPLAYLIST as the only dynamic variable might be start.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:12:35 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-11-15T22:12:35Z</dc:date>
    <item>
      <title>tickdisplaylist with dynamic variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/950969#M25138</link>
      <description>&lt;P&gt;I'm trying to use proc template to create a template with a bunch of dynamic variables.&amp;nbsp; Those variables work fine when I use them in most places, but when I try to use one in tickdisplaylist=(&amp;lt;DYNAMIC VARIABLE HERE&amp;gt;), it errors out and tells me it's expected a quoted string.&amp;nbsp; In my sgrender call, I've tried quoting, not-quoting, embedding all of my quoted labels inside one big set of quotes, etc, but have not had success getting proc template to use my dynamic variable inside this option.&amp;nbsp; Does anyone have any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define statgraph GRPHNM;
        dynamic PLOT1_VISITS PLOT_UNIT PLOT1_YVAL PLOT1_XVAL PLOT2_YVAL PLOT_GROUPS;
        begingraph / datacolors = (&amp;amp;CLRSCALE) datacontrastcolors = (&amp;amp;CLRSCALE_CON.);
            /*entrytitle "Test plot for &amp;amp;PARMTOPLOT";*/
            layout lattice / rows = 1 columns = 2 rowgutter = 0 columngutter = 2 columnweights = (0.66 0.34);
                
                /*** Standard plot ***/
                layout overlay / xaxisopts=(linearopts=( viewmin = -2.5 viewmax = 26.5 
                                                         tickvaluelist=(0 24) tickdisplaylist=("Baseline" "Week 24")
                                                       ) 
                                            display=(LINE TICKVALUES)
                                           ) 
                                 yaxisopts=(label = PLOT_UNIT labelattrs=(size = 8pt) labelposition = TOP);

                    scatterplot y=PLOT1_YVAL x= PLOT1_XVAL  / group = PLOT_GROUPS jitter = AUTO
                                                              groupdisplay = CLUSTER grouporder = &amp;amp;GORDER clusterwidth = 0.75
                                                              markerattrs=(size = 4 symbol = CIRCLEFILLED)
                                                              datatransparency = 0.3
                                                              ;
                    ...MORE PLOTS HERE...
                endlayout;&lt;BR /&gt;....CONTINUED...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 19:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/950969#M25138</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2024-11-15T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: tickdisplaylist with dynamic variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/950970#M25139</link>
      <description>&lt;P&gt;You might get a better response by 1) providing data or use of a SAS supplied data set like SASHELP.CLASS or CARS, 2) a complete template code and 3) the associated Proc SGRender.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any defined Dynamic variable that is used with TICKDISPLAYLIST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple example with a single plot would probably be the starting point and just the TICKDISPLAYLIST as the only dynamic variable might be start.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/950970#M25139</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-15T22:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: tickdisplaylist with dynamic variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/951129#M25140</link>
      <description>&lt;P&gt;To use dynamic variables to specify a tick value list and a tick display list, specify the dynamic variable names in TICKVALUELIST= and TICKDISPLAYLIST= without the parentheses.&amp;nbsp; Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
  define statgraph scatterplot;
    begingraph; 
      dynamic TICKVALLIST TICKDISPLIST
      entrytitle "Height and Weight by Sex"; 
      layout overlay /
        xaxisopts=(linearopts=(tickvaluepriority=true
           tickvaluelist=TICKVALLIST tickdisplaylist=TICKDISPLIST)); 	 
        scatterplot x=height y=weight / 
          group=sex name="scatter" datalabel=name;
        discretelegend "scatter";
      endlayout;	
    endgraph;
  end;
run;

proc sgrender data=sashelp.class template=scatterplot;
   dynamic TICKVALLIST="50 60 70" TICKDISPLIST="A B C";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Give that a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information, see &lt;A title="Referencing Dynamic Variables and Macro Variables" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatug/n04jk9f8v1z20xn186heansl3ocl.htm" target="_self"&gt;Referencing Dynamic Variables and Macro Variables&lt;/A&gt; in &lt;EM&gt;SAS Graph Template Language: User's Guide&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 17:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/951129#M25140</guid>
      <dc:creator>sdengland</dc:creator>
      <dc:date>2024-11-18T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: tickdisplaylist with dynamic variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/951245#M25143</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 19:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/tickdisplaylist-with-dynamic-variable/m-p/951245#M25143</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2024-11-19T19:26:49Z</dc:date>
    </item>
  </channel>
</rss>

