<?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 SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906897#M24229</link>
    <description>&lt;P&gt;Hi! Hopefully my formating works this time! I'm creating a mirror butterfly plot and would like to change the color of the values in the bar segments to white for the segments with a black or maroon background. The remaining segments (VLIGB, red, and blue), I'd like to keep the text in black. I'd also like to change the fonts for the entire plot to Arial. The figure itself is working as intended just not these two aspects. Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;PRE&gt;data WORK.DIAGNOSES;
  infile datalines dsd truncover;
  input diagnosis:$17. _2:32. _1:32. group_cat:32. group:$7.;
  label diagnosis="diagnosis" _2="_2" _1="_1" group_cat="group_cat" group="group";
datalines;
ALL 52 -52 1 Group 1
ALL 2 -2 2 Group 2
AML 10 -20 1 Group 1
AML 6 -10 2 Group 2
Breast Cancer 20 -13 2 Group 2
Breast Cancer 20 -9 1 Group 1
Breast Cancer 8 -3 3 Group 3
Colon Cancer 20 -30 1 Group 1
Lung Cancer 24 -17 1 Group 1
Stomach Cancer 7 -7 4 Group 4
Stomach Cancer 4 -4 3 Group 3
Skin Cancer 1 -1 4 Group 4
Skin Cancer 1 0 3 Group 3
Pancreatic Cancer 2 -2 3 Group 3
Prostate Cancer 2 0 5 Group 5&lt;/PRE&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc format;
 picture positive
 low -&amp;lt; 0 = "0000"
 0 &amp;lt;- high = "0000";
run;

proc sgplot data = work.diagnoses noborder nowall;
styleattrs datacontrastcolors=(black) datacolors=(VLIGB red blue black maroon);
 format _1 positive.;
 format _2 positive.;
 hbar diagnosis / response = _1 group = group groupdisplay = stack barwidth=0.9 grouporder=ascending 
 attrid = myid seglabel
 seglabelfitpolicy = thin
 seglabelattrs =(size = 9 color = black weight = bold)
 name = "c1";
 hbar diagnosis / response = _2  group = group groupdisplay = stack barwidth=0.9 grouporder=ascending
 seglabel
 seglabelfitpolicy = thin
 seglabelattrs = (size = 9 color = black  weight = bold);
 xaxis /*grid gridattrs = (pattern = solid) valueattrs = (size=10 weight = bold) */
 labelattrs = (weight = bold) display=(noticks)
 label = "Patients (%)" values = (-80 to 80 by 20);
 yaxis 
display = (noline nolabel noticks) discreteorder = data 
 valueattrs = (weight=bold color=black family="Arial" size=10)label="Patients";
 keylegend "c1"/ across = 10 noborder title = '' valueattrs=(size=11) sortorder=ascending;
 inset "Insert" / position = bottomleft
 textattrs = (color = black size = 10 family="Arial"
 style = normal);
 inset "Insert" / position = bottomright
 textattrs = (color = black size = 10 weight = bold family="Arial"
 style = normal);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 01:11:32 GMT</pubDate>
    <dc:creator>Stilllearning</dc:creator>
    <dc:date>2023-12-08T01:11:32Z</dc:date>
    <item>
      <title>SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906897#M24229</link>
      <description>&lt;P&gt;Hi! Hopefully my formating works this time! I'm creating a mirror butterfly plot and would like to change the color of the values in the bar segments to white for the segments with a black or maroon background. The remaining segments (VLIGB, red, and blue), I'd like to keep the text in black. I'd also like to change the fonts for the entire plot to Arial. The figure itself is working as intended just not these two aspects. Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;PRE&gt;data WORK.DIAGNOSES;
  infile datalines dsd truncover;
  input diagnosis:$17. _2:32. _1:32. group_cat:32. group:$7.;
  label diagnosis="diagnosis" _2="_2" _1="_1" group_cat="group_cat" group="group";
datalines;
ALL 52 -52 1 Group 1
ALL 2 -2 2 Group 2
AML 10 -20 1 Group 1
AML 6 -10 2 Group 2
Breast Cancer 20 -13 2 Group 2
Breast Cancer 20 -9 1 Group 1
Breast Cancer 8 -3 3 Group 3
Colon Cancer 20 -30 1 Group 1
Lung Cancer 24 -17 1 Group 1
Stomach Cancer 7 -7 4 Group 4
Stomach Cancer 4 -4 3 Group 3
Skin Cancer 1 -1 4 Group 4
Skin Cancer 1 0 3 Group 3
Pancreatic Cancer 2 -2 3 Group 3
Prostate Cancer 2 0 5 Group 5&lt;/PRE&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc format;
 picture positive
 low -&amp;lt; 0 = "0000"
 0 &amp;lt;- high = "0000";
run;

proc sgplot data = work.diagnoses noborder nowall;
styleattrs datacontrastcolors=(black) datacolors=(VLIGB red blue black maroon);
 format _1 positive.;
 format _2 positive.;
 hbar diagnosis / response = _1 group = group groupdisplay = stack barwidth=0.9 grouporder=ascending 
 attrid = myid seglabel
 seglabelfitpolicy = thin
 seglabelattrs =(size = 9 color = black weight = bold)
 name = "c1";
 hbar diagnosis / response = _2  group = group groupdisplay = stack barwidth=0.9 grouporder=ascending
 seglabel
 seglabelfitpolicy = thin
 seglabelattrs = (size = 9 color = black  weight = bold);
 xaxis /*grid gridattrs = (pattern = solid) valueattrs = (size=10 weight = bold) */
 labelattrs = (weight = bold) display=(noticks)
 label = "Patients (%)" values = (-80 to 80 by 20);
 yaxis 
display = (noline nolabel noticks) discreteorder = data 
 valueattrs = (weight=bold color=black family="Arial" size=10)label="Patients";
 keylegend "c1"/ across = 10 noborder title = '' valueattrs=(size=11) sortorder=ascending;
 inset "Insert" / position = bottomleft
 textattrs = (color = black size = 10 family="Arial"
 style = normal);
 inset "Insert" / position = bottomright
 textattrs = (color = black size = 10 weight = bold family="Arial"
 style = normal);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 01:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906897#M24229</guid>
      <dc:creator>Stilllearning</dc:creator>
      <dc:date>2023-12-08T01:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906909#M24231</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
That is really uneasy. 
I think you could use TEXT to replace SEGLABEL.
Maybe PROC TEMPLATE coould make solution easier.
*/
data WORK.DIAGNOSES;
  input diagnosis &amp;amp; $17. _2 _1 group_cat group $20.;
  label diagnosis="diagnosis" _2="_2" _1="_1" group_cat="group_cat" group="group";
datalines;
ALL   52 -52 1 Group 1
ALL   2 -2 2 Group 2
AML   10 -20 1 Group 1
AML   6 -10 2 Group 2
Breast Cancer   20 -13 2 Group 2
Breast Cancer   20 -9 1 Group 1
Breast Cancer   8 -3 3 Group 3
Colon Cancer   20 -30 1 Group 1
Lung Cancer   24 -17 1 Group 1
Stomach Cancer   7 -7 4 Group 4
Stomach Cancer   4 -4 3 Group 3
Skin Cancer   1 -1 4 Group 4
Skin Cancer   1 0 3 Group 3
Pancreatic Cancer   2 -2 3 Group 3
Prostate Cancer   2 0 5 Group 5
;


proc sort data=DIAGNOSES out=have;
by diagnosis group;
run;
data have2;
 set have;
 by diagnosis;
 if first.diagnosis then call missing(cum1,cum2);
 mean1=-sum(cum1,-_1/2);
 mean2=sum(cum2,_2/2);
 cum1+(-_1);
 cum2+_2;
drop cum1 cum2;
run;




proc format;
 picture positive
 low -&amp;lt; 0 = "0000"
 0 &amp;lt;- high = "0000";
run;

proc template;
define style styles.garamond;
parent=styles.listing; /* Or your favorite style */

style graphfonts from graphfonts / 
      'GraphDataFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",7pt)               
      'GraphUnicodeFont' = ("&amp;lt;MTsans-serif-unicode&amp;gt;",9pt)                  
      'GraphValueFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",9pt)              
      'GraphLabel2Font' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)            
      'GraphLabelFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)             
      'GraphFootnoteFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)          
      'GraphTitleFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",11pt,bold)        
      'GraphTitle1Font' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",14pt)       
      'GraphAnnoFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt);             
end;
run;


ods listing style=garamond;
ods html  style=garamond;
proc sgplot data = have2 noborder nowall  ;
styleattrs datacontrastcolors=(black black white white white) datacolors=(VLIGB red blue black maroon);
 format _1 positive.;
 format _2 positive.;

 hbarparm category=diagnosis  response = _1/ group = group groupdisplay = stack barwidth=0.9 grouporder=ascending nooutline name="c1";
 hbarparm category=diagnosis  response = _2/ group = group groupdisplay = stack barwidth=0.9 grouporder=ascending nooutline ;

 text x=mean1 y=diagnosis text=_1 /contributeoffsets=none strip group = group textattrs=(size = 9  weight = bold);
 text x=mean2 y=diagnosis text=_2 /contributeoffsets=none strip group = group textattrs=(size = 9  weight = bold);

 xaxis labelattrs = (weight = bold) display=(noticks) label = "Patients (%)" values = (-80 to 80 by 20);
 yaxis display = (noline nolabel noticks) discreteorder = data valueattrs = (weight=bold color=black  size=10) label="Patients";

 keylegend "c1"/ across = 10 noborder title = '' valueattrs=(size=11) sortorder=ascending;

 inset "Insert" / position = bottomleft textattrs = (color = black size = 10 weight = bold style = normal);
 inset "Insert" / position = bottomright textattrs = (color = black size = 10 weight = bold style = normal);
run;&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-1702014321206.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91007iD4315DEE398ADBFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1702014321206.png" alt="Ksharp_0-1702014321206.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 05:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906909#M24231</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-08T05:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906915#M24232</link>
      <description>&lt;P&gt;Thank you! This mostly worked! A few additional questions:&lt;/P&gt;&lt;P&gt;1. Is there a way to order the bars (can be based on the right or left side) by total bar length? Initially, I ordered my data in excel but this changed the arrangement.&lt;/P&gt;&lt;P&gt;2. Can you rerun the code with a more unique font? Maybe "brush". For me it seems as though the font is still not changing. I changed the "Arial" in your code to brush and the font didn't change.&lt;/P&gt;&lt;P&gt;3. In my dataset, several rows had zeros for the "_1" variable so I removed them from the file, leaving blank cells. One of the bars now says "dot" instead of the zero. Do you know how I can remove this? Below is a screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 75px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91008iF26BF274C094E8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 07:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906915#M24232</guid>
      <dc:creator>Stilllearning</dc:creator>
      <dc:date>2023-12-08T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906922#M24233</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*OK. Try this code.*/
data WORK.DIAGNOSES;
  input diagnosis &amp;amp; $17. _2 _1 group_cat group $20.;
  label diagnosis="diagnosis" _2="_2" _1="_1" group_cat="group_cat" group="group";
datalines;
ALL   52 -52 1 Group 1
ALL   2 -2 2 Group 2
AML   10 -20 1 Group 1
AML   6 -10 2 Group 2
Breast Cancer   20 -13 2 Group 2
Breast Cancer   20 -9 1 Group 1
Breast Cancer   8 -3 3 Group 3
Colon Cancer   20 -30 1 Group 1
Lung Cancer   24 -17 1 Group 1
Stomach Cancer   7 -7 4 Group 4
Stomach Cancer   4 -4 3 Group 3
Skin Cancer   1 -1 4 Group 4
Skin Cancer   1 0 3 Group 3
Pancreatic Cancer   2 -2 3 Group 3
Prostate Cancer   2 0 5 Group 5
;


proc sort data=DIAGNOSES out=have;
by diagnosis group;
run;
data have2;
 set have;
 by diagnosis;
 if first.diagnosis then call missing(cum1,cum2);
 mean1=-sum(cum1,-_1/2);
 mean2=sum(cum2,_2/2);
 cum1+(-_1);
 cum2+_2;

drop cum1 cum2;
run;
proc sql;
create table have3 as
select *,sum(sum(_2,-_1)) as total
 from have2
  group by diagnosis
   order by total desc,diagnosis;
quit;




proc format;
 picture positive
 low -&amp;lt; 0 = "0000"
 0 &amp;lt;- high = "0000";
run;

ods path work.tmp(update) sasuser.templat(update) sashelp.tmplmst(read);
proc template;
define style styles.garamond;
parent=styles.htmlblue; /* Or your favorite style */
style graphfonts from graphfonts / 
      'GraphDataFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",7pt)               
      'GraphUnicodeFont' = ("&amp;lt;MTsans-serif-unicode&amp;gt;",9pt)                  
      'GraphValueFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",9pt)              
      'GraphLabel2Font' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)            
      'GraphLabelFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)             
      'GraphFootnoteFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt)          
      'GraphTitleFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",11pt,bold)        
      'GraphTitle1Font' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",14pt)       
      'GraphAnnoFont' = ("Arial, &amp;lt;MTsans-serif&amp;gt;",10pt);             
end;
run;

ods _all_ close;
ods listing style=garamond gpath='c:\temp\';
ods graphics /outputfmt=png reset=index imagename='want';
proc sgplot data = have3 noborder nowall  ;
styleattrs datacontrastcolors=(black black white white white) datacolors=(VLIGB red blue black maroon);
 format _1 positive.;
 format _2 positive.;

 hbarparm category=diagnosis  response = _1/ group = group groupdisplay = stack barwidth=0.9 grouporder=ascending nooutline name="c1" nozerobars;
 hbarparm category=diagnosis  response = _2/ group = group groupdisplay = stack barwidth=0.9 grouporder=ascending nooutline nozerobars ;

 text x=mean1 y=diagnosis text=_1 /contributeoffsets=none strip group = group textattrs=(size = 9  weight = bold);
 text x=mean2 y=diagnosis text=_2 /contributeoffsets=none strip group = group textattrs=(size = 9  weight = bold);

 xaxis labelattrs = (weight = bold) display=(noticks) label = "Patients (%)" values = (-80 to 80 by 20);
 yaxis display = (noline nolabel noticks) discreteorder = data valueattrs = (weight=bold color=black  size=10) label="Patients";

 keylegend "c1"/ across = 10 noborder title = '' valueattrs=(size=11) sortorder=ascending;

 inset "Insert" / position = bottomleft textattrs = (color = black size = 10 weight = bold style = normal);
 inset "Insert" / position = bottomright textattrs = (color = black size = 10 weight = bold style = normal);
run;&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-1702022068630.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91009iDB2E31A29630F59C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1702022068630.png" alt="Ksharp_0-1702022068630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Is there a way to order the bars (can be based on the right or left side) by total bar length? Initially, I ordered my data in excel but this changed the arrangement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1702022138332.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91010iCF26296F9D2EC4CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1702022138332.png" alt="Ksharp_1-1702022138332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Can you rerun the code with a more unique font? Maybe "brush". For me it seems as though the font is still not changing. I changed the "Arial" in your code to brush and the font didn't change.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1702022462586.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91011iCC72ABCF4C09931C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1702022462586.png" alt="Ksharp_2-1702022462586.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. In my dataset, several rows had zeros for the "_1" variable so I removed them from the file, leaving blank cells. One of the bars now says "dot" instead of the zero. Do you know how I can remove this? Below is a screenshot.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_3-1702022528290.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91012iB5C627A555C9E357/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_3-1702022528290.png" alt="Ksharp_3-1702022528290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906922#M24233</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-08T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906926#M24234</link>
      <description>&lt;P&gt;After I used Chinese FONT (宋体) , I did get different result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1702024079923.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91013iA46BB6750067F199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1702024079923.png" alt="Ksharp_0-1702024079923.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906926#M24234</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-08T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906941#M24235</link>
      <description>&lt;P&gt;Thank you! I was able to arrange the bars by length! For some reason the font and "nozerobars" isn't working still but I'll troubleshoot that another time. For now, I'm happy with the figure. One last question. I'd like to export as a high-resolution figure into ppt (prior this this my figure was grainy when expanded). Do you know the best way to do this? When I use "ods powerpoint file='ppt path';" and close with "ods powerpoint close; it opens the ppt file but there's no image.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 10:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906941#M24235</guid>
      <dc:creator>Stilllearning</dc:creator>
      <dc:date>2023-12-08T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906946#M24236</link>
      <description>&lt;P&gt;1) First way:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1702037125888.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91017iC8C4D3EB6C0A900F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1702037125888.png" alt="Ksharp_0-1702037125888.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) Second way:&lt;/P&gt;
&lt;P&gt;Using PDF destination :&lt;/P&gt;
&lt;P&gt;ods pdf file='......' ;&lt;/P&gt;
&lt;P&gt;proc sgplot.........&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3)Third way:&lt;/P&gt;
&lt;P&gt;Try SVG file :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2014/12/19/have-you-created-scalable-vector-graphics-with-sas/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2014/12/19/have-you-created-scalable-vector-graphics-with-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2019/02/15/scalable-svg-html5/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2019/02/15/scalable-svg-html5/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4)Fourth way:&lt;/P&gt;
&lt;P&gt;Calling&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.Allision)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 12:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906946#M24236</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-08T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906950#M24237</link>
      <description>&lt;P&gt;I didn't even need to go past step 1. It worked perfectly. I genuinely cannot thank you enough for all your help! I hope to get to your level of expertise one day.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 12:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906950#M24237</guid>
      <dc:creator>Stilllearning</dc:creator>
      <dc:date>2023-12-08T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT- Changing the Seglabel colors  based on segment bar color and changing font style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906954#M24238</link>
      <description>&lt;P&gt;FYI...BACKLIGHT option is available on TEXT plot for such use cases.&amp;nbsp; The label will be back lit with a contrasting color so the label will show up even if the bar and text colors match.&amp;nbsp; This could simplify the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Changing-the-Seglabel-colors-based-on-segment-bar-color/m-p/906954#M24238</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2023-12-08T13:05:26Z</dc:date>
    </item>
  </channel>
</rss>

