<?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: Save WEBOUT dataset used by PROC SGPLOT to create imagemap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/405067#M13843</link>
    <description>&lt;P&gt;I looked at the docs a bit, but can't see a way to get the imagemap as data.&amp;nbsp; Parsing the html might be the only way.&amp;nbsp; Unless one of the ODS graphics wizards has an idea.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13635"&gt;@Vince_SAS&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 01:02:19 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2017-10-18T01:02:19Z</dc:date>
    <item>
      <title>Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404833#M13832</link>
      <description>&lt;P&gt;Is there a way to save the webout dataset used by the imagemap macro into a SAS dataset? We want to compile a list of image map names and coordinates&amp;nbsp;to create&amp;nbsp;a lookup table for multiple images on a webpage, and we are not having any luck figuring out how to save just the map name and coordinate data&amp;nbsp;produced by PROC SGPLOT and PROC SGRENDER. I'm really hoping there is a way to avoid having to scrape .htm output to create this dataset if at all possible.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404833#M13832</guid>
      <dc:creator>jltz83</dc:creator>
      <dc:date>2017-10-17T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404850#M13833</link>
      <description>&lt;P&gt;Interesting idea.&amp;nbsp; Could you post a little example of code generating the html output with imagemap you like (e.g. PROC SGPLOT on sashelp.class) and also post the imagemap name and coordinates you would like to have output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404850#M13833</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-17T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404869#M13834</link>
      <description>&lt;P&gt;With the example below, I'd like to be able to&amp;nbsp;output the map name and each of that tags attributes in a table.&amp;nbsp; The section of .htm output that I'd like to convert into a dataset is also shown below. So, I'd have one column that would have the name 'carsSample1' repeated in multiple rows and separate columns for the alt, title, and coords associate with each shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph pieChart;
dynamic _NEGATIVE_;
dynamic _ticklist_;
begingraph / collation=binary datacolors=(cx004B8D cx439639 cxD9541E cx9F218B cxC3A204) ;
EntryTitle "Sample Pie Chart" /;
layout region ;
piechart category=make response=EngineSize / 
datalabellocation=outside ;
endlayout;
endgraph;
end;
define style pieChartStyle;
parent=styles.listing;
style graphfonts from graphfonts / 
'GraphDataFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",7pt) 
'GraphUnicodeFont' = ("&amp;lt;MTsans-serif-unicode&amp;gt;",9pt) 
'GraphValueFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",9pt) 
'GraphLabel2Font' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",10pt) 
'GraphLabelFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",10pt) 
'GraphFootnoteFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",10pt) 
'GraphTitleFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",11pt) 
'GraphTitle1Font' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",14pt) 
'GraphAnnoFont' = ("Verdana, &amp;lt;MTsans-serif&amp;gt;",10pt); 
end;
run;

ods listing close;
ods graphics / imagemap=on imageName="carsSample" antialiasmax=10000 imagefmt=png width=300px height=300px ;
&amp;nbsp;
/* Set path for output */
ods html path=' ' file='carsSample.htm' style=pieChartStyle;
proc sgrender data=sashelp.cars template=pieChart ; 
run;
ods graphics off;
ods html close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;map name="carsSample1"&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Other
Engine Size (L)= 830.6" title="Make=Other
Engine Size (L)= 830.6" coords="84,107,71,130,66,156,69,182,80,206,99,226,122,238,148,243,174,239,198,227,217,209,229,185,233,159,150,159,84,107,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Toyota
Engine Size (L)=  75.1" title="Make=Toyota
Engine Size (L)=  75.1" coords="106,88,84,107,150,159,106,88,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Nissan
Engine Size (L)=  57.9" title="Make=Nissan
Engine Size (L)=  57.9" coords="126,79,106,88,150,159,126,79,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Mercedes-Benz
Engine Size (L)= 101.5" title="Make=Mercedes-Benz
Engine Size (L)= 101.5" coords="164,77,145,75,126,79,150,159,164,77,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Ford
Engine Size (L)=  81.7" title="Make=Ford
Engine Size (L)=  81.7" coords="194,88,164,77,150,159,194,88,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Chevrolet
Engine Size (L)= 100.8" title="Make=Chevrolet
Engine Size (L)= 100.8" coords="221,115,209,100,194,88,150,159,221,115,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=BMW
Engine Size (L)=  62.5" title="Make=BMW
Engine Size (L)=  62.5" coords="230,137,221,115,150,159,230,137,"/&amp;gt;
&amp;lt;Area shape="poly" alt="Make=Audi
Engine Size (L)=  58.1" title="Make=Audi
Engine Size (L)=  58.1" coords="233,159,230,137,150,159,233,159,"/&amp;gt;
&amp;lt;/map&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2017 16:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404869#M13834</guid>
      <dc:creator>jltz83</dc:creator>
      <dc:date>2017-10-17T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404981#M13835</link>
      <description>&lt;P&gt;Thanks for adding example.&amp;nbsp; I'm going to move this to the "SAS/GRAPH and ODS Graphics" community.&amp;nbsp; I think it should attract the right eyeballs there.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/404981#M13835</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-17T19:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/405067#M13843</link>
      <description>&lt;P&gt;I looked at the docs a bit, but can't see a way to get the imagemap as data.&amp;nbsp; Parsing the html might be the only way.&amp;nbsp; Unless one of the ODS graphics wizards has an idea.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13635"&gt;@Vince_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/405067#M13843</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-18T01:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Save WEBOUT dataset used by PROC SGPLOT to create imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/405172#M13845</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I think that the only way to do this is to write DATA step code to post-process the file&amp;nbsp;to retrieve the information that you need.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 11:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Save-WEBOUT-dataset-used-by-PROC-SGPLOT-to-create-imagemap/m-p/405172#M13845</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-10-18T11:37:56Z</dc:date>
    </item>
  </channel>
</rss>

