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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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