<?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 gbarline: legend? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75031#M2786</link>
    <description>device=gif doesn't work either&lt;BR /&gt;
&lt;BR /&gt;
Is there another way to have a legend?</description>
    <pubDate>Wed, 14 Oct 2009 15:19:44 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2009-10-14T15:19:44Z</dc:date>
    <item>
      <title>proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75022#M2777</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I use a proc gbarline which is a really good thing. Now I'd like to have a legend for the bar and the plot - just to tell the user what the bars and what the plot displays. Putting legend=legend1 behind the sumvar unfortunately doesn't work. Does anybody know how to do this?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Eva</description>
      <pubDate>Thu, 08 Oct 2009 09:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75022#M2777</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-10-08T09:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75023#M2778</link>
      <description>Eva,&lt;BR /&gt;
Show perhaps some code&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Thu, 08 Oct 2009 09:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75023#M2778</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2009-10-08T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75024#M2779</link>
      <description>symbol1 value=dot height=5 interpol=join color=red width=2;&lt;BR /&gt;
&lt;BR /&gt;
proc gbarline data=work.mygraph;&lt;BR /&gt;
&lt;BR /&gt;
format wert percent10.2&lt;BR /&gt;
          q_aggregat percent10.2;&lt;BR /&gt;
&lt;BR /&gt;
by mybyfield;&lt;BR /&gt;
&lt;BR /&gt;
bar mydate / sumvar = wert discrete&lt;BR /&gt;
                   raxis=axis1 maxis=axis2&lt;BR /&gt;
	   ref= 0.95&lt;BR /&gt;
	   cref = orange;&lt;BR /&gt;
&lt;BR /&gt;
plot / sumvar = q_aggregat&lt;BR /&gt;
        raxis=axis3;&lt;BR /&gt;
&lt;BR /&gt;
axis1 label=none order=(0 to 1 by 0.1);&lt;BR /&gt;
axis2 label=none;&lt;BR /&gt;
axis3 label=none order=(0 to 1 by 0.1);&lt;BR /&gt;
&lt;BR /&gt;
title "#byval(mybyfield)";&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 09 Oct 2009 06:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75024#M2779</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-10-09T06:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75025#M2780</link>
      <description>Do you have any sample data you could provide, to go along with the sample code?</description>
      <pubDate>Fri, 09 Oct 2009 14:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75025#M2780</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-10-09T14:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75026#M2781</link>
      <description>Obs	q_aggregat	mybyfield	mydate	wert&lt;BR /&gt;
1	0.20930	2	10.09.2009	0.93528&lt;BR /&gt;
2	0.21538	2	11.09.2009	0.98630&lt;BR /&gt;
3	0.22137	2	14.09.2009	100.000&lt;BR /&gt;
4	0.22727	2	15.09.2009	100.000&lt;BR /&gt;
5	0.23308	2	16.09.2009	100.000&lt;BR /&gt;
6	0.23881	2	17.09.2009	0.98230&lt;BR /&gt;
7	0.33544	4	10.09.2009	0.98565&lt;BR /&gt;
8	0.33962	4	11.09.2009	0.98898&lt;BR /&gt;
9	0.33750	4	14.09.2009	0.88032&lt;BR /&gt;
10	0.33540	4	15.09.2009	0.94600&lt;BR /&gt;
11	0.33333	4	16.09.2009	0.73171&lt;BR /&gt;
12	0.33129	4	17.09.2009	0.73291&lt;BR /&gt;
13	0.77108	5	10.09.2009	100.000&lt;BR /&gt;
14	0.77246	5	11.09.2009	0.98247&lt;BR /&gt;
15	0.77381	5	14.09.2009	0.99673&lt;BR /&gt;
16	0.77515	5	15.09.2009	0.99151&lt;BR /&gt;
17	0.77059	5	16.09.2009	0.94867&lt;BR /&gt;
18	0.77193	5	17.09.2009	100.000&lt;BR /&gt;
19	0.51515	6	10.09.2009	0.96884&lt;BR /&gt;
20	0.51807	6	11.09.2009	0.95833&lt;BR /&gt;
21	0.52096	6	14.09.2009	0.95600&lt;BR /&gt;
22	0.52381	6	15.09.2009	0.96962&lt;BR /&gt;
23	0.52071	6	16.09.2009	0.93400&lt;BR /&gt;
24	0.51765	6	17.09.2009	0.82052&lt;BR /&gt;
25	0.89404	7	10.09.2009	0.45791&lt;BR /&gt;
26	0.89474	7	11.09.2009	0.95247&lt;BR /&gt;
27	0.88889	7	14.09.2009	0.87443&lt;BR /&gt;
28	0.88961	7	15.09.2009	0.96730&lt;BR /&gt;
29	0.88387	7	16.09.2009	0.62942&lt;BR /&gt;
30	0.87821	7	17.09.2009	0.69590&lt;BR /&gt;
31	0.62044	8	10.09.2009	0.91667&lt;BR /&gt;
32	0.62319	8	11.09.2009	0.98894&lt;BR /&gt;
33	0.62590	8	14.09.2009	0.96756&lt;BR /&gt;
34	0.62857	8	15.09.2009	0.99710&lt;BR /&gt;
35	0.62411	8	16.09.2009	0.79227&lt;BR /&gt;
36	0.62676	8	17.09.2009	0.99935</description>
      <pubDate>Wed, 14 Oct 2009 07:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75026#M2781</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-10-14T07:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75027#M2782</link>
      <description>Eva&lt;BR /&gt;
&lt;BR /&gt;
Here a tested result in 9.2.2&lt;BR /&gt;
but Robert Allison woill surely present anything better&lt;BR /&gt;
and perhaps resolving the appearance of  mydate as tha name of the variable&lt;BR /&gt;
HTH &lt;BR /&gt;
Andre&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data mygraph;&lt;BR /&gt;
informat mydate ddmmyy10.;&lt;BR /&gt;
input&lt;BR /&gt;
Obs	q_aggregat	mybyfield	mydate	wert ;&lt;BR /&gt;
cards;&lt;BR /&gt;
1	0.20930	2	10.09.2009	0.93528&lt;BR /&gt;
2	0.21538	2	11.09.2009	0.98630&lt;BR /&gt;
3	0.22137	2	14.09.2009	100.000&lt;BR /&gt;
4	0.22727	2	15.09.2009	100.000&lt;BR /&gt;
5	0.23308	2	16.09.2009	100.000&lt;BR /&gt;
6	0.23881	2	17.09.2009	0.98230&lt;BR /&gt;
7	0.33544	4	10.09.2009	0.98565&lt;BR /&gt;
8	0.33962	4	11.09.2009	0.98898&lt;BR /&gt;
9	0.33750	4	14.09.2009	0.88032&lt;BR /&gt;
10	0.33540	4	15.09.2009	0.94600&lt;BR /&gt;
11	0.33333	4	16.09.2009	0.73171&lt;BR /&gt;
12	0.33129	4	17.09.2009	0.73291&lt;BR /&gt;
13	0.77108	5	10.09.2009	100.000&lt;BR /&gt;
14	0.77246	5	11.09.2009	0.98247&lt;BR /&gt;
15	0.77381	5	14.09.2009	0.99673&lt;BR /&gt;
16	0.77515	5	15.09.2009	0.99151&lt;BR /&gt;
17	0.77059	5	16.09.2009	0.94867&lt;BR /&gt;
18	0.77193	5	17.09.2009	100.000&lt;BR /&gt;
19	0.51515	6	10.09.2009	0.96884&lt;BR /&gt;
20	0.51807	6	11.09.2009	0.95833&lt;BR /&gt;
21	0.52096	6	14.09.2009	0.95600&lt;BR /&gt;
22	0.52381	6	15.09.2009	0.96962&lt;BR /&gt;
23	0.52071	6	16.09.2009	0.93400&lt;BR /&gt;
24	0.51765	6	17.09.2009	0.82052&lt;BR /&gt;
25	0.89404	7	10.09.2009	0.45791&lt;BR /&gt;
26	0.89474	7	11.09.2009	0.95247&lt;BR /&gt;
27	0.88889	7	14.09.2009	0.87443&lt;BR /&gt;
28	0.88961	7	15.09.2009	0.96730&lt;BR /&gt;
29	0.88387	7	16.09.2009	0.62942&lt;BR /&gt;
30	0.87821	7	17.09.2009	0.69590&lt;BR /&gt;
31	0.62044	8	10.09.2009	0.91667&lt;BR /&gt;
32	0.62319	8	11.09.2009	0.98894&lt;BR /&gt;
33	0.62590	8	14.09.2009	0.96756&lt;BR /&gt;
34	0.62857	8	15.09.2009	0.99710&lt;BR /&gt;
35	0.62411	8	16.09.2009	0.79227&lt;BR /&gt;
36	0.62676	8	17.09.2009	0.99935&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc gbarline data=work.mygraph;&lt;BR /&gt;
symbol1 value=dot height=5 interpol=join color=red width=2;&lt;BR /&gt;
axis1 label=none order=(0 to 1 by 0.1);&lt;BR /&gt;
axis2 label=none;&lt;BR /&gt;
axis3 label=none order=(0 to 1 by 0.1);&lt;BR /&gt;
legend1 mode=protect position=(middle center inside) shape=symbol(1 cm, 0.2 cm) &lt;BR /&gt;
        label=("quarterly" h=0.2 cm position=top ); &lt;BR /&gt;
legend2 mode=protect origin=(10,1.5)cm  shape=bar(1 cm, 0.2 cm) &lt;BR /&gt;
        value=("sum of wert" h=0.2 cm); &lt;BR /&gt;
format wert percent10.2   q_aggregat percent10.2;&lt;BR /&gt;
by mybyfield;&lt;BR /&gt;
bar mydate / sumvar = wert discrete raxis=axis1 maxis=axis2 ref= 0.95 cref = orange legend=legend2;&lt;BR /&gt;
plot / sumvar = q_aggregat  raxis=axis3   legend=legend1;&lt;BR /&gt;
title "#byval(mybyfield)";&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 14 Oct 2009 11:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75027#M2782</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2009-10-14T11:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75028#M2783</link>
      <description>Nicely done Andre!&lt;BR /&gt;
&lt;BR /&gt;
Of course, since you've set everyone's expectations, I guess I now *have* &lt;BR /&gt;
to try to provide a few small improvements  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
options nobyline;&lt;BR /&gt;
proc gbarline data=work.mygraph;&lt;BR /&gt;
symbol1 value=dot height=2pct interpol=join color=red width=2;&lt;BR /&gt;
axis1 label=none order=(0 to 1 by 0.2) minor=none offset=(0,0);&lt;BR /&gt;
axis2 label=none value=(angle=90);&lt;BR /&gt;
axis3 label=none order=(0 to 1 by 0.2) minor=none offset=(0,0);&lt;BR /&gt;
legend1 position=(middle right) shape=symbol(1 cm, 0.2 cm) &lt;BR /&gt;
        label=none value=("quarterly");&lt;BR /&gt;
legend2 position=(middle right) shape=bar(.15in,.15in) &lt;BR /&gt;
        label=none value=("sum of wert"); &lt;BR /&gt;
format wert q_aggregat percent10.0;&lt;BR /&gt;
format mydate ddmmyy10.;&lt;BR /&gt;
by mybyfield;&lt;BR /&gt;
bar mydate / sumvar=wert discrete raxis=axis1 maxis=axis2 ref=0.95 lref=3 cref=orange legend=legend2;&lt;BR /&gt;
plot / sumvar=q_aggregat raxis=axis3 legend=legend1;&lt;BR /&gt;
title "Group: #byval(mybyfield)";&lt;BR /&gt;
run;&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 14 Oct 2009 14:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75028#M2783</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-10-14T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75029#M2784</link>
      <description>Hello both of you,&lt;BR /&gt;
&lt;BR /&gt;
thanx for your code. I tried it but unfortunately I don't get a legend.&lt;BR /&gt;
&lt;BR /&gt;
I have SAS 9.1 and use the device activex. Maybe that's the reason I don't get a legend?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Eva</description>
      <pubDate>Wed, 14 Oct 2009 14:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75029#M2784</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-10-14T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75030#M2785</link>
      <description>Ahh! - I was using v9.2, and device=gif (and also the default device in dms windows sas).</description>
      <pubDate>Wed, 14 Oct 2009 15:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75030#M2785</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-10-14T15:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc gbarline: legend?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75031#M2786</link>
      <description>device=gif doesn't work either&lt;BR /&gt;
&lt;BR /&gt;
Is there another way to have a legend?</description>
      <pubDate>Wed, 14 Oct 2009 15:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gbarline-legend/m-p/75031#M2786</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-10-14T15:19:44Z</dc:date>
    </item>
  </channel>
</rss>

