<?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 HTML_LEGEND=variable in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54982#M6743</link>
    <description>Does anyone out there have any experience with using "HTML_LEGEND=" ?</description>
    <pubDate>Thu, 16 Oct 2008 18:38:34 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-16T18:38:34Z</dc:date>
    <item>
      <title>HTML_LEGEND=variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54982#M6743</link>
      <description>Does anyone out there have any experience with using "HTML_LEGEND=" ?</description>
      <pubDate>Thu, 16 Oct 2008 18:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54982#M6743</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-16T18:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: HTML_LEGEND=variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54983#M6744</link>
      <description>Found several hits on the SAS support website  &lt;A href="http://support.sas.com" target="_blank"&gt;http://support.sas.com&lt;/A&gt;  when using the Google advanced search argument below:&lt;BR /&gt;
&lt;BR /&gt;
+"HTML_LEGEND" site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Here is one SUGI/SGF technical paper with reference to this topic area:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/149-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/149-28.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 16 Oct 2008 19:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54983#M6744</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-16T19:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: HTML_LEGEND=variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54984#M6745</link>
      <description>Ok,&lt;BR /&gt;
&lt;BR /&gt;
Here's mine.&lt;BR /&gt;
&lt;BR /&gt;
I am experimenting with drill down today.&lt;BR /&gt;
Using html= works as expected, no problems, simple.&lt;BR /&gt;
Using html_legend= is not so nice.&lt;BR /&gt;
&lt;BR /&gt;
So that I have a complete legend of all potential values, I want to use explicit midpoints&lt;BR /&gt;
  midpoint=(1 2 3 4 5 6 7 &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Well, if I have only 2 actual data values in the data=dataset, then I get a nasty error because there is nothing to associate with the other 6 values.&lt;BR /&gt;
&lt;BR /&gt;
So, what works?&lt;BR /&gt;
2 data values, 2 gmap areas, 2 midpoints -- html_legend works fine.&lt;BR /&gt;
3 values:  2 real data values (1 2), 1 dummy value = 3, 3 gmap areas (a b z, where z is 0x0x0x0); 3 midpoints (1 2 3) works fine.&lt;BR /&gt;
4 values:  2 real (1 2), 2 dummy (3 4); 3 gmap areas (a b z) -- aha weirdness.&lt;BR /&gt;
&lt;BR /&gt;
legend 1 works, legend 2 works, legend 3 works, legend 4 does not transform to a hand, and so I can't click on it and open up its description page.&lt;BR /&gt;
&lt;BR /&gt;
This weirdness holds for 5 and 6.&lt;BR /&gt;
When I try to include value "7" the program breaks with the nasty error.&lt;BR /&gt;
&lt;BR /&gt;
Using proc GMAP, SAS 9.1.3 on Windows XP.&lt;BR /&gt;
&lt;BR /&gt;
I changed the experimental program to use z1 through z6 as dummy areas of size 0 (x=0; y=0;) for the remainder of the values, and we have a winner.&lt;BR /&gt;
&lt;BR /&gt;
I found an additional annoyance.&lt;BR /&gt;
All observations in the data=dataset have to have the correct link associated with its value.  That is if ldrill is the html_legend= variable; then, even if I have an observation with z_value=1; label='z1'; and ldrill='href="value1.txt"';  for a place holder, and then later in the dataset there is a record with z_value=1; label='a '; and ldrill=''; then the legend drill does not work.&lt;BR /&gt;
&lt;BR /&gt;
Aha, another annoyance.&lt;BR /&gt;
Putting the dummy records first makes html= to not work properly. The dummy records so that I can have the legend work, have to come after the real data observations.&lt;BR /&gt;
&lt;BR /&gt;
But, a good thing:&lt;BR /&gt;
You don't have to use x=0; y=0; four times to create the dummy area.&lt;BR /&gt;
&lt;BR /&gt;
    x=0; y=0;&lt;BR /&gt;
    label='z1'; output;&lt;BR /&gt;
    label='z2'; output;&lt;BR /&gt;
    label='z3'; output;&lt;BR /&gt;
    label='z4'; output;&lt;BR /&gt;
    label='z5'; output;&lt;BR /&gt;
    label='z6'; output;&lt;BR /&gt;
    label='z7'; output;&lt;BR /&gt;
    label='z8'; output;&lt;BR /&gt;
&lt;BR /&gt;
works well enough&lt;BR /&gt;
&lt;BR /&gt;
null

Message was edited by: Chuck</description>
      <pubDate>Thu, 16 Oct 2008 21:11:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54984#M6745</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-16T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTML_LEGEND=variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54985#M6746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one's a bit old (~4 years), but just wanted to mention that several html_legend problems have been fixed in v9.2 and v9.3.&amp;nbsp; You will probably find that what you were trying to do works now &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can still reproduce the problem in 9.3, please send me some sample code, and I'll enter a bug on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 17:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/HTML-LEGEND-variable/m-p/54985#M6746</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-07-18T17:07:14Z</dc:date>
    </item>
  </channel>
</rss>

