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

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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