<?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 ods excel graph %28sgplot%29 legend missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-graph-28sgplot-29-legend-missing/m-p/849214#M335740</link>
    <description>&lt;P&gt;I am using the code shown below to export a graph to excel. The graph in the Results Viewer- SAS tab shows the legend with the list&amp;nbsp;of names of the colleges with the top 10 counts under the graph, but the graph in excel does not show the legend with the list&amp;nbsp;of names of the colleges with the top 10 counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPTIONS ORIENTATION=LANDSCAPE NODATE TOPMARGIN=".5IN" BOTTOMMARGIN=".5IN" LEFTMARGIN=".5IN" RIGHTMARGIN=".5IN" pageno=1;&lt;BR /&gt;ods excel file="&amp;amp;FILE_PATH.\Transfer_Top10_fa_&amp;amp;YEAR_START._&amp;amp;YEAR_END._&amp;amp;SYSDATE..xlsx";&lt;BR /&gt;ods excel options(sheet_name="Graph Top 10 counts");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=GRAPH_DATA_TOP10 description="Top 10 counts of Transfer Students";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;styleattrs backcolor=white wallcolor=cxC0C0C0;&lt;BR /&gt;series x = TERM_COHORT y = COUNT_PER_INST / group=INST_NAME_COHORT datalabel MARKERS MARKERATTRS=(SIZE=9.5 symbol=CircleFilled)&lt;BR /&gt;lineattrs = (thickness = 2 pattern=solid) NOMISSINGGROUP;&lt;BR /&gt;&lt;BR /&gt;title "Top 10 counts of Transfer Students";&lt;BR /&gt;xaxis label = 'Fall Semesters';&lt;BR /&gt;yaxis label = ' ' grid;&lt;BR /&gt;keylegend / noborder;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;BR /&gt;ODS CLOSE _ALL_;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 18:21:22 GMT</pubDate>
    <dc:creator>csheeder</dc:creator>
    <dc:date>2022-12-12T18:21:22Z</dc:date>
    <item>
      <title>ods excel graph %28sgplot%29 legend missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-graph-28sgplot-29-legend-missing/m-p/849214#M335740</link>
      <description>&lt;P&gt;I am using the code shown below to export a graph to excel. The graph in the Results Viewer- SAS tab shows the legend with the list&amp;nbsp;of names of the colleges with the top 10 counts under the graph, but the graph in excel does not show the legend with the list&amp;nbsp;of names of the colleges with the top 10 counts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPTIONS ORIENTATION=LANDSCAPE NODATE TOPMARGIN=".5IN" BOTTOMMARGIN=".5IN" LEFTMARGIN=".5IN" RIGHTMARGIN=".5IN" pageno=1;&lt;BR /&gt;ods excel file="&amp;amp;FILE_PATH.\Transfer_Top10_fa_&amp;amp;YEAR_START._&amp;amp;YEAR_END._&amp;amp;SYSDATE..xlsx";&lt;BR /&gt;ods excel options(sheet_name="Graph Top 10 counts");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=GRAPH_DATA_TOP10 description="Top 10 counts of Transfer Students";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;styleattrs backcolor=white wallcolor=cxC0C0C0;&lt;BR /&gt;series x = TERM_COHORT y = COUNT_PER_INST / group=INST_NAME_COHORT datalabel MARKERS MARKERATTRS=(SIZE=9.5 symbol=CircleFilled)&lt;BR /&gt;lineattrs = (thickness = 2 pattern=solid) NOMISSINGGROUP;&lt;BR /&gt;&lt;BR /&gt;title "Top 10 counts of Transfer Students";&lt;BR /&gt;xaxis label = 'Fall Semesters';&lt;BR /&gt;yaxis label = ' ' grid;&lt;BR /&gt;keylegend / noborder;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;BR /&gt;ODS CLOSE _ALL_;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-graph-28sgplot-29-legend-missing/m-p/849214#M335740</guid>
      <dc:creator>csheeder</dc:creator>
      <dc:date>2022-12-12T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel graph %28sgplot%29 legend missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-excel-graph-28sgplot-29-legend-missing/m-p/849217#M335743</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I found that my chart size was set too small since there were so many groups. I used this code to increase the size and the problem is solved.&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ods graphics / maxlegendarea=40;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-excel-graph-28sgplot-29-legend-missing/m-p/849217#M335743</guid>
      <dc:creator>csheeder</dc:creator>
      <dc:date>2022-12-12T18:36:49Z</dc:date>
    </item>
  </channel>
</rss>

