Thank you, Sanjay_SAS! This is the exact solution I have been searching for! I used the sample code from your blog post, but replaced RANGECOLORMODEL with RANGEALTCOLORMODEL in order to apply the colors to a SERIESPLOT (where the lines are considered contrast colors). data test; do x = 1 to 100; subj = 99 + x; time0 = rand('normal',4,2); time1 = rand('normal',4,2); chg = time1 - time0; output; end; run; proc transpose data=test out=test (rename=(_name_=time col1=value)); by subj chg; var time0 time1; run; proc template; define statgraph sp; begingraph; rangeattrmap name='map'; range min -< 0 / rangealtcolormodel=(red yellow); range 0 -< max / rangealtcolormodel=(yellow green); endrangeattrmap; rangeattrvar attrvar=attrvar var=chg attrmap='map'; layout overlay / xaxisopts=(display=(ticks tickvalues)) yaxisopts=(display=(ticks tickvalues)); seriesplot x=time y=value / group=subj colorresponse=attrvar lineattrs=(pattern=1) name='a'; continuouslegend 'a'; endlayout; endgraph; end; run; ods html; proc sgrender data=test template=sp; title 'Gradient Seriesplot'; run; Thank you again!!
... View more