<?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 reference line label in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/reference-line-label/m-p/671978#M14045</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a graph as shown below. I want to add reference lines' labels&amp;nbsp; for each line but it is not printed and in the log I get this message&lt;/P&gt;
&lt;P&gt;' CURVELABEL='1' is invalid. The option value cannot be a string when a column of reference&lt;BR /&gt;lines is plotted. The label will not be drawn."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code. Could you help me what I am missing?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro try3(m);&lt;BR /&gt;%do i=1 %to 12;&lt;/P&gt;
&lt;P&gt;proc sgplot data=all_per_grade_w&amp;amp;i.;&lt;BR /&gt;where group in ("2" , "4"); /* restrict to two groups */&lt;BR /&gt;density writing_scale_score/ type=normal group=group;&lt;/P&gt;
&lt;P&gt;refline scale_score_n /LABEL= ('1' '2' '3' '4' '5' '6') lineattrs=(color=red) axis=x discreteoffset=0.5 axis=x ; ;&lt;/P&gt;
&lt;P&gt;xaxis values =(100 to 600 by 50); ;&lt;BR /&gt;yaxis display=(noline noticks nolabel) grid;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%try3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dustychair_0-1595550068784.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47620i395DAB42B4120D81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dustychair_0-1595550068784.png" alt="dustychair_0-1595550068784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 00:24:44 GMT</pubDate>
    <dc:creator>dustychair</dc:creator>
    <dc:date>2020-07-24T00:24:44Z</dc:date>
    <item>
      <title>reference line label</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/reference-line-label/m-p/671978#M14045</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a graph as shown below. I want to add reference lines' labels&amp;nbsp; for each line but it is not printed and in the log I get this message&lt;/P&gt;
&lt;P&gt;' CURVELABEL='1' is invalid. The option value cannot be a string when a column of reference&lt;BR /&gt;lines is plotted. The label will not be drawn."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code. Could you help me what I am missing?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro try3(m);&lt;BR /&gt;%do i=1 %to 12;&lt;/P&gt;
&lt;P&gt;proc sgplot data=all_per_grade_w&amp;amp;i.;&lt;BR /&gt;where group in ("2" , "4"); /* restrict to two groups */&lt;BR /&gt;density writing_scale_score/ type=normal group=group;&lt;/P&gt;
&lt;P&gt;refline scale_score_n /LABEL= ('1' '2' '3' '4' '5' '6') lineattrs=(color=red) axis=x discreteoffset=0.5 axis=x ; ;&lt;/P&gt;
&lt;P&gt;xaxis values =(100 to 600 by 50); ;&lt;BR /&gt;yaxis display=(noline noticks nolabel) grid;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%try3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dustychair_0-1595550068784.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47620i395DAB42B4120D81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dustychair_0-1595550068784.png" alt="dustychair_0-1595550068784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 00:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/reference-line-label/m-p/671978#M14045</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2020-07-24T00:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: reference line label</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/reference-line-label/m-p/672442#M14050</link>
      <description>&lt;P&gt;I think you have to specify a column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p03jtr6n56wu4ln1k77szqw1fjkc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p03jtr6n56wu4ln1k77szqw1fjkc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="xisDoc-argument"&gt;CURVELABEL=&lt;SPAN class="xisDoc-choice"&gt;"&lt;EM class="xisDoc-userSuppliedValue"&gt;string&lt;/EM&gt;"&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;column&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;expression&lt;/EM&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-shortDescription"&gt;specifies a label for the reference line or lines.&lt;/SPAN&gt;&lt;/P&gt;
&lt;SECTION class="xisDoc-tableWrap"&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xisDoc-requirement"&gt;Requirement&lt;/TD&gt;
&lt;TD class="xisDoc-summaryText"&gt;If you use the COLN() or COLC() function in the X= or Y= option to specify multiple reference line intercepts, then you must use the COLC() function in the CURVELABEL= option to specify exactly one label for each reference line intercept. Otherwise, this option is ignored. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" title="" href="https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p0h7ijpcw8oz36n1mgffnqacymnn.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1qjliyotx3cg5n1hop2gc4xxoae" data-docset-id="grstatgraph" data-docset-version="9.4" data-original-href="p0h7ijpcw8oz36n1mgffnqacymnn.htm#n1qjliyotx3cg5n1hop2gc4xxoae"&gt;GTL Functions Used with the EVAL Function&lt;/A&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD rowspan="2" class="xisDoc-summaryInteraction"&gt;Interactions&lt;/TD&gt;
&lt;TD class="xisDoc-summaryText"&gt;If the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" title="" href="https://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p03jtr6n56wu4ln1k77szqw1fjkc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0v1yx8po8sixln1rteqhrs8ubvm" data-docset-id="grstatgraph" data-docset-version="9.4" data-original-href="p03jtr6n56wu4ln1k77szqw1fjkc.htm#p0v1yx8po8sixln1rteqhrs8ubvm"&gt;X or Y argument&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;specifies a value, then use "&lt;EM class="xisDoc-userSuppliedValue"&gt;string&lt;/EM&gt;".&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xisDoc-summaryText"&gt;&lt;FONT color="#FF0000"&gt;If the X or Y argument specifies a column, then use a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;column&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to define the label for each value.&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jul 2020 04:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/reference-line-label/m-p/672442#M14050</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2020-07-27T04:57:17Z</dc:date>
    </item>
  </channel>
</rss>

