<?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: Mosaic plot with data label in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mosaic-plot-with-data-label/m-p/570943#M161050</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200312"&gt;@Srigyan&lt;/a&gt;&amp;nbsp;Data labels on the top of graph is going to be tricky (as the rectangles become smaller and smaller). Instead you can use an option so that when you hover over the rectangle it shows all the info. Just use the code below, hover and wait for 1 second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / imagemap;
proc freq data=sashelp.heart order=freq ;
   tables smoking_status*weight_status / plots=mosaic(square ) ;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key is "imagemap" option in ods graphics.&lt;/P&gt;&lt;P&gt;If rather you are looking for percent info in the table then read the second row in every block.&lt;/P&gt;&lt;P&gt;Let me know if this helped in any way.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 12:55:13 GMT</pubDate>
    <dc:creator>koyelghosh</dc:creator>
    <dc:date>2019-07-03T12:55:13Z</dc:date>
    <item>
      <title>Mosaic plot with data label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mosaic-plot-with-data-label/m-p/570917#M161044</link>
      <description>&lt;P&gt;I am running following code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc freq data=sashelp.heart order=freq ;
   tables smoking_status*weight_status / plots=mosaic(square ) ;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am getting mosaic plot but i dont get a data label i.e.what % heavy has and what % is non-smoker has, is there any option i can add data label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="center"&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mosaic-plot-with-data-label/m-p/570917#M161044</guid>
      <dc:creator>Srigyan</dc:creator>
      <dc:date>2019-07-03T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mosaic plot with data label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mosaic-plot-with-data-label/m-p/570943#M161050</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200312"&gt;@Srigyan&lt;/a&gt;&amp;nbsp;Data labels on the top of graph is going to be tricky (as the rectangles become smaller and smaller). Instead you can use an option so that when you hover over the rectangle it shows all the info. Just use the code below, hover and wait for 1 second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / imagemap;
proc freq data=sashelp.heart order=freq ;
   tables smoking_status*weight_status / plots=mosaic(square ) ;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key is "imagemap" option in ods graphics.&lt;/P&gt;&lt;P&gt;If rather you are looking for percent info in the table then read the second row in every block.&lt;/P&gt;&lt;P&gt;Let me know if this helped in any way.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 12:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mosaic-plot-with-data-label/m-p/570943#M161050</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-03T12:55:13Z</dc:date>
    </item>
  </channel>
</rss>

