<?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: Proc gchart Donut statement --&amp;gt; the display in pdf is quite bad in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919849#M24447</link>
    <description>&lt;P&gt;Which version of SAS are you running? Proc SGPIE was pre-production in 9.4.6 and production for 9.4.7 which would mean you are running 9.4.5 or earlier.&lt;/P&gt;
&lt;P&gt;You can check by running:&lt;/P&gt;
&lt;PRE&gt;Proc setinit;
run;&lt;/PRE&gt;
&lt;P&gt;In the log you would see something like this in the output:&lt;/P&gt;
&lt;PRE&gt;Original site validation data
Current version: 9.04.01M7P080520
&lt;/PRE&gt;
&lt;P&gt;The M7 means that I am currently rung 9.4.7 .&lt;/P&gt;
&lt;P&gt;This means that you may want to update your install. That should be covered by any license.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 20:12:53 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-03-11T20:12:53Z</dc:date>
    <item>
      <title>Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/918383#M24415</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to get a nice display of my donut in a pdf.&lt;/P&gt;&lt;P&gt;I tried a lot of differents codes but i can not get what i want.&lt;/P&gt;&lt;P&gt;May be could you help me please ?&lt;/P&gt;&lt;P&gt;My dataset used for my reporting is DONUT.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods pdf startpage=now;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS LAYOUT START;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS region x=-10 mm y=20 mm width=180 mm height=80 mm ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods graphics / width=8in height=6in;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;pattern1 v=s c="&amp;amp;couleur_1.";&lt;/DIV&gt;&lt;DIV&gt;pattern2 v=s c="&amp;amp;couleur_2.";&lt;/DIV&gt;&lt;DIV&gt;pattern3 v=s c="&amp;amp;couleur_3.";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;legend1 label=none across=2 FWIDTH=3 value=(h=6 pt justify=center)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;POSITION=(bottom center) offset=(0 pct,0 pct) shape=bar(4pct,3pct) value=("Assuré principal (2040)" "Conjoint (297)" "Enfant (1133)");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;title h=12pt ls=1.5 "Effectifs Base &amp;amp;annee." bold j=center ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc gchart data=DONUT;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;donut typ_ass / type=sum&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;sumvar=pctn0 percent=inside value=inside slice=arrow&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;noheader&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; donutpct=50&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; value=none&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUTLINE=white&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;plabel=(font='Albany' color=white h=4)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; legend=legend1;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS LAYOUT END;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ODS PDF CLOSE;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and i put some pictures of what i have ( at the left) and what i want (at the right) to display my donut in a pdf page.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks you for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="what_i_have.png" style="width: 449px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94238i063974922C5AEF94/image-size/large?v=v2&amp;amp;px=999" role="button" title="what_i_have.png" alt="what_i_have.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="What I want" style="width: 446px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94239i0DF5E8C9A3B154A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="what_i_want.png" alt="What I want" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;What I want&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/918383#M24415</guid>
      <dc:creator>Mathassens</dc:creator>
      <dc:date>2024-02-29T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/918532#M24416</link>
      <description>&lt;P&gt;You could try PROC SGPIE instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs truncover;
input DRS_LIB_TYP_ASS &amp;amp;$40.	N0	PCTN0	typ_ass &amp;amp;$40.;
cards;
Assuré principal	2040	0.588	Assuré principal (2040)
Conjoint	297	0.086	Conjoint (297)
Enfant	1133	0.327	Enfant (1133)
;
data have2;
 set have;
 do i=1 to N0;
  output;
 end;
run;

ods pdf file='c:\temp\temp.pdf' style=htmlblue;
option nonumber nodate;
title 'Effect Base 2021';
proc sgpie data=have2;
donut typ_ass/datalabeldisplay=(response percent) 
 datalabelloc=inside datalabelattrs=(color=white weight=bold);
keylegend /title='';
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1709270387551.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94286iE780EFFAA91FB8D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1709270387551.png" alt="Ksharp_0-1709270387551.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 05:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/918532#M24416</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-01T05:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919739#M24442</link>
      <description>&lt;P&gt;Thanks you for your answer but unfortunately, i have the following error:&lt;/P&gt;&lt;P&gt;ERROR: Procedure SGPIE not found.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 10:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919739#M24442</guid>
      <dc:creator>Mathassens</dc:creator>
      <dc:date>2024-03-11T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919849#M24447</link>
      <description>&lt;P&gt;Which version of SAS are you running? Proc SGPIE was pre-production in 9.4.6 and production for 9.4.7 which would mean you are running 9.4.5 or earlier.&lt;/P&gt;
&lt;P&gt;You can check by running:&lt;/P&gt;
&lt;PRE&gt;Proc setinit;
run;&lt;/PRE&gt;
&lt;P&gt;In the log you would see something like this in the output:&lt;/P&gt;
&lt;PRE&gt;Original site validation data
Current version: 9.04.01M7P080520
&lt;/PRE&gt;
&lt;P&gt;The M7 means that I am currently rung 9.4.7 .&lt;/P&gt;
&lt;P&gt;This means that you may want to update your install. That should be covered by any license.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919849#M24447</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-11T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919880#M24449</link>
      <description>&lt;P&gt;Emm. Since you don't have PROC SGPIE license, then&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp;(a.k.a Robert.Allison) may give you a help.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 01:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919880#M24449</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-12T01:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart Donut statement --&gt; the display in pdf is quite bad</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919966#M24460</link>
      <description>&lt;P&gt;My display is now quite nice with the proc gchart&lt;/P&gt;&lt;P&gt;I will keep my job &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 16:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-gchart-Donut-statement-gt-the-display-in-pdf-is-quite-bad/m-p/919966#M24460</guid>
      <dc:creator>Mathassens</dc:creator>
      <dc:date>2024-03-12T16:09:07Z</dc:date>
    </item>
  </channel>
</rss>

