BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
reindeers
Fluorite | Level 6

Good day!

I have a problem with gradar again.

This is my data:

viewcnt1cnt2cnt3id
1871041
21000010
37716617
4955024
5973028
6991051
7867758
8878561
9897463
10953276
117024680
127714983
138611388
14964092
15887594
168511596

This is my code:

data test;

    set test;

        format cnt1 cnt2 cnt3 3.0;

run;

    

ods _all_ close;

goptions device=png;

ods HTML STYLE=&_ODSSTYLE. nogtitle nogfootnote body=_WEBOUT(NOTOP NOBOT) path=&_TMPCAT. (url=&_REPLAY.) ;

proc gradar data=test;

    chart id /  freq=cnt1

    overlayvar=cnt2

    cstars=(red, blue)

    wstars=2

    lstars=1

    starcircles=(1.0);

run;

quit;

ods HTML close;

This is what happen when I use overlayvar in gradar:

Separately variables drawn perfect:

I try do something like this:

I assumed there is a problem with zero value: I tried without zero but result was the same.

1 ACCEPTED SOLUTION

Accepted Solutions
gergely_batho
SAS Employee

Hi,

First you should rearrange (transpose) your data.

Look at the example in the user's guide:

SAS/GRAPH(R) 9.2: Reference, Second Edition

the structure of the data is here:

SAS/GRAPH(R) 9.2: Reference, Second Edition

In your case the new dataset should contain the following variables: id, cnt, <overlayvar> (with values 1, 2, 3)

View solution in original post

2 REPLIES 2
gergely_batho
SAS Employee

Hi,

First you should rearrange (transpose) your data.

Look at the example in the user's guide:

SAS/GRAPH(R) 9.2: Reference, Second Edition

the structure of the data is here:

SAS/GRAPH(R) 9.2: Reference, Second Edition

In your case the new dataset should contain the following variables: id, cnt, <overlayvar> (with values 1, 2, 3)

reindeers
Fluorite | Level 6

Thank you so much!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 876 views
  • 0 likes
  • 2 in conversation