Hi SAS experts, I am trying to build a series plot in sgplot using X axis as year and week. when I build the graph in excel it returns a X axis label like this: But in SAS it is not possible to read the X Axis The data is organized like this: Data Cars; input year $ week $ Small_Size $ Mid_Size $ Large_Size $ Van $ ; cards; 2018 1 10 15 23 16 2018 2 12 11 28 18 2018 3 15 19 17 11 ; run; Data Cars; set cars; YearWeek=catx(' ',Year,Week); run; Data Cars; set cars; format YearWeek $7.; run; And the SAS codes for the graph that I am using is this: ods graphics on / width=10 in outputfmt=gif imagemap=on imagename="Cars" border=off; PROC SGPLOT DATA = Cars; SERIES X = YearWeek Y = Small_Size; SERIES X = YearWeek Y = Mid_Size; SERIES X = YearWeek Y = Large_Size; SERIES X = YearWeek Y = Van; XAXIS TYPE = DISCRETE GRID; YAXIS LABEL = 'Number of cars' GRID VALUES = (5 TO 40 BY 1); TITLE 'Sales by type'; run; Any suggestion how I could control the X axis to look some how like the one I am getting in excel? Thank very much!
... View more