<?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: Legend texts are not what I expected in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939139#M24909</link>
    <description>&lt;P&gt;Add the DISCRETE option to the DONUT statement and let me know if you get the expected results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 20:36:03 GMT</pubDate>
    <dc:creator>LeliaM</dc:creator>
    <dc:date>2024-08-13T20:36:03Z</dc:date>
    <item>
      <title>Legend texts are not what I expected</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939131#M24907</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Smurf_0-1723579607351.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99226iF2659230B3A97D64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Smurf_0-1723579607351.png" alt="Smurf_0-1723579607351.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The legend text are not what I defined in Format. Does any one know why? The Diabetes_cat variable only has 1, 2, 3, but the legend has 1.2 and 1.8&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;proc format library=data;
	value Diabetes_cat
		1='Normal'
		2='Prediabetic'
		3='Diabetic'
	;
run;

legend2 label=('Diabetes')
;

proc gchart data=data.freq4chart2;
	donut Diabetes_cat / sumvar=count
		PERCENT=INSIDE
		subgroup=AgeGroup2
		donutpct=20 
	noheading
		legend=legend2;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939131#M24907</guid>
      <dc:creator>Smurf</dc:creator>
      <dc:date>2024-08-13T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Legend texts are not what I expected</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939137#M24908</link>
      <description>&lt;PRE&gt;proc format lib=data;
value site
1=Sydney
2=Atlanta
3=Paris
;
run;

data totals;
	length dept $ 7 ;
	input dept site quarter sales;
	format site site.;
datalines;
Parts 1 1 7043.97
Parts 2 1 8225.26
Parts 3 1 5543.97
Tools 1 4 1775.74
Tools 2 4 3424.19
Tools 3 4 6914.25
;


legend1 ;

proc gchart data=totals;
	format sales dollar8.;
	donut site / sumvar=sales
subgroup=dept 
donutpct=30
label=("All" justify=center "Quarters")
noheading
legend=legend1;
run;
&lt;/PRE&gt;
&lt;P&gt;Another Example already rebuilt such result.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939137#M24908</guid>
      <dc:creator>Smurf</dc:creator>
      <dc:date>2024-08-13T20:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Legend texts are not what I expected</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939139#M24909</link>
      <description>&lt;P&gt;Add the DISCRETE option to the DONUT statement and let me know if you get the expected results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939139#M24909</guid>
      <dc:creator>LeliaM</dc:creator>
      <dc:date>2024-08-13T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Legend texts are not what I expected</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939141#M24910</link>
      <description>Yes, it gave the expected result.&lt;BR /&gt;Thank you so much!</description>
      <pubDate>Tue, 13 Aug 2024 20:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-texts-are-not-what-I-expected/m-p/939141#M24910</guid>
      <dc:creator>Smurf</dc:creator>
      <dc:date>2024-08-13T20:40:42Z</dc:date>
    </item>
  </channel>
</rss>

