<?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: Strange value appeared in legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417751#M14365</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that's what I used to get the legend, and I haven't got that kind of legend so far even though I used the same code (of course I changed title and other options in those cases) so far making same kind of graph.&lt;/P&gt;&lt;P&gt;After I post the first post, I tried it again, and then with the different dataset, however in both cases, there were the strange symbol in the legend...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;tmplout='file' in the proc statement like this,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=final.g10 noautolegend tmplout='file';
	title "G.「いい天気『(だ)ね』」10代の結果" font="MS Mincho";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(after this is the same as the one I wrote in the first post)&lt;/P&gt;&lt;P&gt;and I got a file named "file", but it doesn't have any filename extension like .doc or .html etc..&lt;/P&gt;&lt;P&gt;I'm not sure if I'm doing right or not... you mentioned that I can get the GTL, but it seems I couldn't?&lt;/P&gt;&lt;P&gt;Could you please point out what was wrong in this code, which I couldn't get the GTL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2017 03:37:13 GMT</pubDate>
    <dc:creator>Turtle</dc:creator>
    <dc:date>2017-12-02T03:37:13Z</dc:date>
    <item>
      <title>Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417650#M14363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;(sorry if I post this in diff location)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I'm making a line graph using SAS Studio from OnDemand for Academics, and having problem regarding its legend.&lt;/P&gt;&lt;P&gt;This is what I'm saying strange.&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="strange value.png" style="width: 201px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16948i64A9CBD1BB1C2EC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="strange value.png" alt="strange value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's three squares (which appears in diff symbols I chose in rtf) and one sharp symbol, which I've never seen before.&lt;/P&gt;&lt;P&gt;I've made&amp;nbsp;10 graphs of this kind so far, and I haven't got this problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I used. (no error or warning when I run this)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=final.g10 noautolegend;
	title "G.「いい天気『(だ)ね』」10代の結果" font="MS Mincho";
	styleattrs datasymbols=(SquareFilled DiamondFilled TriangleFilled Square Diamond Triangle);
	series x=地区 y=使用度 /group=変化形 break  markers;
	xaxis grid label="地区" labelattrs=(family="MS Mincho" size=12pt);
	yaxis values=(0 to 2 by 0.5) grid label="使用度" labelattrs=(family="MS Mincho" size=12pt);
	keylegend / position=bottom location=outside across=1 titleattrs=(family="MS Mincho" size=12pt) valueattrs=(family="MS Mincho" size=12pt);
	ods graphics on / width=6in;
	ods graphics on / height=7in;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;At first, I thought maybe this is because writing more than three symbols to use even the dataset have three values,&lt;/P&gt;&lt;P&gt;but nothing changed and the strange one was still there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone figure out what's happening here and why this happens, and how can I make it not appear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 04:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417650#M14363</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-12-01T04:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417734#M14364</link>
      <description>&lt;P&gt;I do not see any reason for you to get that legend with the code you provide.&amp;nbsp; Are you sure that code made that legend?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would specify tmplout='file' in the proc statement, then look at the file, which will show the GTL.&amp;nbsp; That might give you a clue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume that since you specify styleattrs, that you want to see those markers.&amp;nbsp; If so, then add attrpriority=none to your ODS Graphics statement.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 12:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417734#M14364</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-01T12:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417751#M14365</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that's what I used to get the legend, and I haven't got that kind of legend so far even though I used the same code (of course I changed title and other options in those cases) so far making same kind of graph.&lt;/P&gt;&lt;P&gt;After I post the first post, I tried it again, and then with the different dataset, however in both cases, there were the strange symbol in the legend...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;tmplout='file' in the proc statement like this,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=final.g10 noautolegend tmplout='file';
	title "G.「いい天気『(だ)ね』」10代の結果" font="MS Mincho";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(after this is the same as the one I wrote in the first post)&lt;/P&gt;&lt;P&gt;and I got a file named "file", but it doesn't have any filename extension like .doc or .html etc..&lt;/P&gt;&lt;P&gt;I'm not sure if I'm doing right or not... you mentioned that I can get the GTL, but it seems I couldn't?&lt;/P&gt;&lt;P&gt;Could you please point out what was wrong in this code, which I couldn't get the GTL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417751#M14365</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-12-02T03:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417885#M14375</link>
      <description>&lt;P&gt;That should make a file called 'file' in your current working directory that should contain the GTL.&amp;nbsp; I would want to see exactly what goes into the legend.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 23:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417885#M14375</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-01T23:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417896#M14380</link>
      <description>&lt;P&gt;Do you have missing group data in your code?&amp;nbsp; You are likely getting that.&amp;nbsp; You can set NOMISSINGGROUP in the SERIES plot to ignore missing values.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 23:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417896#M14380</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-12-01T23:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417918#M14383</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Yes, it create a file named "file" and when I opened it in SAS Studio as text file, here's what it shows.&lt;/P&gt;&lt;PRE&gt;proc template;&lt;BR /&gt;define statgraph sgplot;&lt;BR /&gt;begingraph / collation=binary dataSymbols=( SQUAREFILLED DIAMONDFILLED TRIANGLEFILLED SQUARE DIAMOND TRIANGLE );&lt;BR /&gt;EntryTitle "G.「いい天気『(だ)ね』」10代の結果" /;&lt;BR /&gt;layout overlay / xaxisopts=( Label="地区" LabelAttrs=( Size=12pt Family="MS Mincho") type=discrete discreteopts=( TickValueFitPolicy=SplitRotate ) griddisplay=on ) y2axisopts=(labelFitPolicy=Split) yaxisopts=( Label="使用度" labelFitPolicy=Split LabelAttrs=( Size=12pt Family="MS Mincho") type=linear linearopts=( tickvaluelist=( 0 0.5 1 1.5 2 ) viewmin=0 viewmax=2 ) griddisplay=on ) y2axisopts=(labelFitPolicy=Split);&lt;BR /&gt; SeriesPlot X='地区'n Y='使用度'n / primary=true break=true Group='変化形'n display=(markers) LegendLabel="使用度" NAME="SERIES";&lt;BR /&gt; DiscreteLegend "SERIES" / Location=Outside across=1 valign=bottom Title="変化形" TitleAttrs=( Size=12pt Family="MS Mincho") ValueAttrs=( Size=12pt Family="MS Mincho");&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;Is there anything to point out which could be the cause of the strange symbol?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417918#M14383</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-12-02T03:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417919#M14384</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;As a result, NOMISSINGGROUP worked!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder why this started to appear since as I already mentioned, I've never seen this strange value... even though I used the almost same code and dataset...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I really appreciate your reply which worked as my best solution!!&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417919#M14384</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-12-02T03:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Strange value appeared in legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417953#M14385</link>
      <description>&lt;P&gt;You are welcome.&amp;nbsp; It depends on the data.&amp;nbsp; If your data has missing values in the group variable, these are represented using the special symbol.&amp;nbsp; These markers are also likely in the graph itself, unless associated (x, y) values are missing. Often, missing values are generated when merging data sets.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 15:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Strange-value-appeared-in-legend/m-p/417953#M14385</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-12-02T15:40:50Z</dc:date>
    </item>
  </channel>
</rss>

