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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 567 views
  • 0 likes
  • 2 in conversation