<?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 How to add reference line to each bar in SAS GTL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406030#M13869</link>
    <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I am trying to add a reference line to each bar in SAS GTL. I know I have target= in barchartparm but I need to customize the line to dashed, which I can not find anyway to do that in barchartparm.&lt;/P&gt;&lt;P&gt;I tried scatterplot and symbolchar to overlay a "DASHED LINE" unicode but the issue is the unicode I used is not vertical centered. It cannot be placed right at the data point. I tried vertical offset to fix it then another issue is in the legend, the same symbol char was used but if I changed the size of the symbol in legend it resulted in so much space in the legend box then the figure became too long.&lt;/P&gt;&lt;P&gt;I wanna ask are there some other way to get around this? or some magical normal dashed line unicode that I can use? I searched so many some just gave me a empty box which I do not understand why.&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the part of the code:&lt;/P&gt;&lt;PRE&gt;proc template;&lt;BR /&gt;   define statgraph &amp;amp;st.&amp;amp;yr.&amp;amp;pp.TopBox;&lt;BR /&gt;   BeginGraph / DesignWidth = &amp;amp;Height.in ;&lt;BR /&gt;   &lt;BR /&gt;   symbolchar name=line char='2508'x /voffset= 0.39 ;&lt;BR /&gt;   symbolchar name=linelengend char='2508'x /voffset= 0.3;&lt;BR /&gt;&lt;BR /&gt;   discreteattrmap name = "line";&lt;BR /&gt;      Value "1" /markerattrs=(symbol=line color=black size = 0.8in);&lt;BR /&gt; &lt;BR /&gt;   enddiscreteattrmap;&lt;BR /&gt;   discreteattrvar attrvar = drawline var = line attrmap = "line";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    legenditem type = marker name= "XXXX" / label="XXXX"&lt;BR /&gt;                                            markerattrs = (Symbol = linelengend Color = black Size = 0.4in);&lt;BR /&gt;&lt;BR /&gt;    Layout Overlay / XXXXX ;&lt;BR /&gt;       /* Create Bars */&lt;BR /&gt; BarChartPARM x = XXXX   y = XXXXX / Group = PlanColor&lt;BR /&gt;                                         GROUPORDER= reversedata&lt;BR /&gt;                                         GroupDisplay = Cluster&lt;BR /&gt;                                         CLUSTERWIDTH = 0.5&lt;BR /&gt;                                         Orient = vertical&lt;BR /&gt;                                         DataSkin = &amp;amp;DataSkin. &lt;BR /&gt;                                         /* DATALABEL = XXXX*/&lt;BR /&gt;                                         /* DISCRETEOFFSET = -0.2*/&lt;BR /&gt;                                         datalabelattrs=(size=10 weight=bold)&lt;BR /&gt;                                         ERRORLOWER = Lower_CI&lt;BR /&gt;                                         ERRORUPPER = Upper_CI&lt;BR /&gt;                                         /* target = XXXX*/&lt;BR /&gt;                                         ;&lt;BR /&gt;&lt;BR /&gt; ScatterPlot x = XXXXX    y = XXXXX  / Group = drawline&lt;BR /&gt;                                            GROUPORDER = reversedata&lt;BR /&gt;                                            GroupDisplay = Cluster &lt;BR /&gt;                                           /* DATALABEL = XXXXX*/&lt;BR /&gt;                                          ;&lt;BR /&gt;&lt;BR /&gt;DiscreteLegend "XXX" / Border = Yes&lt;BR /&gt;                        ValueAttrs = (Family = "Calibri" Color = Black Size = 10)&lt;BR /&gt;                        ;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 20 Oct 2017 17:34:19 GMT</pubDate>
    <dc:creator>Pepsimax2</dc:creator>
    <dc:date>2017-10-20T17:34:19Z</dc:date>
    <item>
      <title>How to add reference line to each bar in SAS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406030#M13869</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I am trying to add a reference line to each bar in SAS GTL. I know I have target= in barchartparm but I need to customize the line to dashed, which I can not find anyway to do that in barchartparm.&lt;/P&gt;&lt;P&gt;I tried scatterplot and symbolchar to overlay a "DASHED LINE" unicode but the issue is the unicode I used is not vertical centered. It cannot be placed right at the data point. I tried vertical offset to fix it then another issue is in the legend, the same symbol char was used but if I changed the size of the symbol in legend it resulted in so much space in the legend box then the figure became too long.&lt;/P&gt;&lt;P&gt;I wanna ask are there some other way to get around this? or some magical normal dashed line unicode that I can use? I searched so many some just gave me a empty box which I do not understand why.&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the part of the code:&lt;/P&gt;&lt;PRE&gt;proc template;&lt;BR /&gt;   define statgraph &amp;amp;st.&amp;amp;yr.&amp;amp;pp.TopBox;&lt;BR /&gt;   BeginGraph / DesignWidth = &amp;amp;Height.in ;&lt;BR /&gt;   &lt;BR /&gt;   symbolchar name=line char='2508'x /voffset= 0.39 ;&lt;BR /&gt;   symbolchar name=linelengend char='2508'x /voffset= 0.3;&lt;BR /&gt;&lt;BR /&gt;   discreteattrmap name = "line";&lt;BR /&gt;      Value "1" /markerattrs=(symbol=line color=black size = 0.8in);&lt;BR /&gt; &lt;BR /&gt;   enddiscreteattrmap;&lt;BR /&gt;   discreteattrvar attrvar = drawline var = line attrmap = "line";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    legenditem type = marker name= "XXXX" / label="XXXX"&lt;BR /&gt;                                            markerattrs = (Symbol = linelengend Color = black Size = 0.4in);&lt;BR /&gt;&lt;BR /&gt;    Layout Overlay / XXXXX ;&lt;BR /&gt;       /* Create Bars */&lt;BR /&gt; BarChartPARM x = XXXX   y = XXXXX / Group = PlanColor&lt;BR /&gt;                                         GROUPORDER= reversedata&lt;BR /&gt;                                         GroupDisplay = Cluster&lt;BR /&gt;                                         CLUSTERWIDTH = 0.5&lt;BR /&gt;                                         Orient = vertical&lt;BR /&gt;                                         DataSkin = &amp;amp;DataSkin. &lt;BR /&gt;                                         /* DATALABEL = XXXX*/&lt;BR /&gt;                                         /* DISCRETEOFFSET = -0.2*/&lt;BR /&gt;                                         datalabelattrs=(size=10 weight=bold)&lt;BR /&gt;                                         ERRORLOWER = Lower_CI&lt;BR /&gt;                                         ERRORUPPER = Upper_CI&lt;BR /&gt;                                         /* target = XXXX*/&lt;BR /&gt;                                         ;&lt;BR /&gt;&lt;BR /&gt; ScatterPlot x = XXXXX    y = XXXXX  / Group = drawline&lt;BR /&gt;                                            GROUPORDER = reversedata&lt;BR /&gt;                                            GroupDisplay = Cluster &lt;BR /&gt;                                           /* DATALABEL = XXXXX*/&lt;BR /&gt;                                          ;&lt;BR /&gt;&lt;BR /&gt;DiscreteLegend "XXX" / Border = Yes&lt;BR /&gt;                        ValueAttrs = (Family = "Calibri" Color = Black Size = 10)&lt;BR /&gt;                        ;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406030#M13869</guid>
      <dc:creator>Pepsimax2</dc:creator>
      <dc:date>2017-10-20T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference line to each bar in SAS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406035#M13870</link>
      <description>&lt;P&gt;It is easier to help if you post your current code with sample data and output.&amp;nbsp; Also the SAS release number.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406035#M13870</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-20T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference line to each bar in SAS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406043#M13871</link>
      <description>&lt;P&gt;Just edited the post! Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406043#M13871</guid>
      <dc:creator>Pepsimax2</dc:creator>
      <dc:date>2017-10-20T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add reference line to each bar in SAS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406743#M13890</link>
      <description>&lt;P&gt;Please supply FULL code (with any macro variables values) and sample data so we can run your program to see what is going on.&amp;nbsp; Please include SAS release number.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-add-reference-line-to-each-bar-in-SAS-GTL/m-p/406743#M13890</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-23T20:59:25Z</dc:date>
    </item>
  </channel>
</rss>

