BookmarkSubscribeRSS Feed
monday89
Fluorite | Level 6

I have the following dataset

 

days cum_freq cum_percent group
2 1 25 1
4 2 75 1
6 4 100 1
25 1 50 2
30 2 100 2
12 8 73 3
15 11 100 3
5 5 100  

 

I would like to show cum_frequency for each data point in the line graph

 


proc sgplot data=have;
series x=days y=cum_percent/ group=group markers outside=cum_freq;
run;

 

outside=cum_freq not working

1 REPLY 1
ballardw
Super User
proc sgplot data=have;
series x=days y=cum_percent/ group=group markers datalabel=cum_freq;
run;

if you want the value displayed with the marker.

 

YAXISTABLE if you want the values displayed outside of the graph area might work

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 595 views
  • 0 likes
  • 2 in conversation