<?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: SAS SGPLOT BARLINE CHART in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186093#M6872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite cleat on what you're after. Are you wanting the line chart and bar chart to represent a different set of values from the same group variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 21:10:45 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2015-02-27T21:10:45Z</dc:date>
    <item>
      <title>SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186090#M6869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am working on sgplot barline chart . I am trying to display barline chart with two legends one for the bars and other for line . I want to have the legend values for line chart different from the group xyz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=xxxx;&lt;BR /&gt;vline b/response=a&amp;nbsp; group=xyz&amp;nbsp; groupdisplay=cluster y2axis legend=legend1&amp;nbsp; name="b" ;&lt;BR /&gt;vbar b/response=c group=xyz&amp;nbsp;&amp;nbsp; groupdisplay=cluster name="a" ;&lt;BR /&gt;keylegend "a"&amp;nbsp; "b";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can change the values of the legend for the vline ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 16:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186090#M6869</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-02-27T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186091#M6870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get two legend, you code should look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sgplot data=xxxx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;vline b/response=a&amp;nbsp; group=xyz&amp;nbsp; groupdisplay=cluster y2axis name="b" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;vbar b/response=c group=xyz&amp;nbsp;&amp;nbsp; groupdisplay=cluster name="a" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;keylegend "a";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;keylegend "b";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;What values do you want for the line chart?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 16:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186091#M6870</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-02-27T16:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186092#M6871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the response.&amp;nbsp; For line chart I am getting the group variable names of xyz in the legend "b" and I want to&amp;nbsp; rename those values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the group xyz consists of&amp;nbsp; ab, bc ,cd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would get the same naming conventions in both the legends . I cant change the group name in line charts as it a summarized plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 16:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186092#M6871</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-02-27T16:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186093#M6872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite cleat on what you're after. Are you wanting the line chart and bar chart to represent a different set of values from the same group variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 21:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186093#M6872</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-02-27T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186094#M6873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly I want to represent different set of values for the same group variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 21:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186094#M6873</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-02-27T21:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186095#M6874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too am trying to understand your use case.&amp;nbsp; Combining plot statements gets a lot easier if you pre summarize your data (Proc Means), and then use VBARPARM and SERIES plots.&amp;nbsp; Then, you can use different category and group variables as needed.&amp;nbsp; With VBAR and VLINE, there are some restrictions.&amp;nbsp; Which release of SAS are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2015 07:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186095#M6874</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-02-28T07:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186096#M6875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the info will try with vbarparm . I am using sas 9.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2015 10:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186096#M6875</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-02-28T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SGPLOT BARLINE CHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186097#M6876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the help. It worked for me &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundeep. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Mar 2015 22:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-SGPLOT-BARLINE-CHART/m-p/186097#M6876</guid>
      <dc:creator>sundeep23</dc:creator>
      <dc:date>2015-03-01T22:19:21Z</dc:date>
    </item>
  </channel>
</rss>

