<?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: How do you modify the labels on a star plot using GCHART in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/368984#M12788</link>
    <description>&lt;P&gt;If it's one to one mapping from X to Y, a format may be one way to do it easily.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 00:03:52 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-21T00:03:52Z</dc:date>
    <item>
      <title>How do you modify the labels on a star plot using GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/368979#M12787</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the STAR command in GCHART to plot my data, which all works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default is to label the spines on the plot with the variable (call it X)&amp;nbsp;used to create the spine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the chart to show a different label than X (call it Y).&amp;nbsp; Is that possible in GCHART?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I would like the splines to correspond the the variable X which has the values "a" "b" "c" "d", but label the&lt;/P&gt;&lt;P&gt;spline with a very different variable Y which takes on different values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 23:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/368979#M12787</guid>
      <dc:creator>Dan4</dc:creator>
      <dc:date>2017-06-20T23:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you modify the labels on a star plot using GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/368984#M12788</link>
      <description>&lt;P&gt;If it's one to one mapping from X to Y, a format may be one way to do it easily.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 00:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/368984#M12788</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-21T00:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you modify the labels on a star plot using GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/370683#M12809</link>
      <description>&lt;P&gt;Here's some code to 'flesh out' what Reeza suggested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically if you have a numeric variable X that you want to use to control the order of the radar chart spokes, but you have a character variable Y that you want to use to label the spokes (rather than using the X-values), you can create a user-defined format so that the x values will print as the y-text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title;&lt;/P&gt;
&lt;P&gt;data foo;&lt;BR /&gt;length y $1;&lt;BR /&gt;input x y line value;&lt;BR /&gt;datalines;&lt;BR /&gt;1 A 1 5&lt;BR /&gt;2 B 1 7&lt;BR /&gt;3 C 1 2&lt;BR /&gt;4 D 1 1&lt;BR /&gt;5 E 1 4&lt;BR /&gt;1 A 2 4&lt;BR /&gt;2 B 2 6&lt;BR /&gt;3 C 2 3&lt;BR /&gt;4 D 2 2&lt;BR /&gt;5 E 2 5&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table temp as&lt;BR /&gt;select unique x as start, y as label&lt;BR /&gt;from foo;&lt;BR /&gt;quit; run;&lt;BR /&gt;data control; set temp;&lt;BR /&gt;fmtname = 'xfmt';&lt;BR /&gt;type = 'N';&lt;BR /&gt;end = START;&lt;BR /&gt;run;&lt;BR /&gt;proc format lib=work cntlin=control;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 "Radar Chart";&lt;BR /&gt;proc gradar data=foo;&lt;BR /&gt;chart x / overlay=line freq=value;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc gradar data=foo;&lt;BR /&gt;format x xfmt.;&lt;BR /&gt;chart x / overlay=line freq=value;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first graph is the radar chart with the spokes labeled with the numeric X, and in the 2nd chart the spokes are labeled with the Y text (via the user-defined format):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9874i4CE80B84AE155E65/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="radar_first.png" title="radar_first.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9875i52CE4226F4AD5A6E/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="radar_second.png" title="radar_second.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-you-modify-the-labels-on-a-star-plot-using-GCHART/m-p/370683#M12809</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2017-06-26T17:54:48Z</dc:date>
    </item>
  </channel>
</rss>

