Hello - Can you please help me? Below is the code for a bar-line chart using proc sgplot. The problem I have is that the refline on the x axis does not appear at the right date. It shows in the beginning of the data range of dates. How can I make it appear at the specified value in the refline statement? proc sgplot data=w; format IncrementalUFOnly comma10. BaseUSalesFOnly comma10.; vbar WeekEnd /response=IncrementalUFOnly dataskin=pressed baselineattrs=(thickness=0) fillattrs=graphdata1 name='a'; vline WeekEnd / response=BaseUSalesFOnly lineattrs=(pattern=solid color=gold thickness=2) name='b' ; xaxis values=('06Jan2019'd to '04Aug2019'd by Week) display=(noline nolabel noticks) fitpolicy=rotatethin valuesrotate=vertical labelattrs=( size=7pt ) valueattrs=( size=10pt ); refline '16Jun2019'd / axis=x lineattrs=(color=red pattern=shortdash) transparency=0.1 noclip ; yaxis display=(noline noticks) grid label='Incremental Units Feature Only' values=(0 to 85000 by 5000) offsetmin=0; keylegend 'a' 'b'/ title ='' linelength=24 valueattrs=(size=8pt); format WeekEnd MMDDYY10.; run; ods graphics off; Title1;
... View more