%let name=col1; filename odsout '.'; data my_data; input TIME AMOUNT; datalines; 1 9 2 13 3 22 4 24 5 28 6 32 7 37 8 41 9 42 10 49 11 45 ; run; data my_data; set my_data; length htmlvar $300; htmlvar= 'title='||quote( 'Time: '|| trim(left(Time)) ||'0D'x|| 'Amount: '|| trim(left(amount)) )|| ' href="col1_info.htm"'; run; goptions device=png; goptions noborder; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="GChart Simple Column Chart") style=htmlblue; goptions gunit=pct htitle=6 ftitle="albany amt/bold" htext=4.25 ftext="albany amt/bold"; goptions ctext=gray33; axis1 label=('TIME'); axis2 label=(a=90 'AMOUNT') order=(0 to 50 by 10) minor=none offset=(0,0); /* pattern v=solid color=red; */ pattern v=solid color=cx43a2ca; /* this is the hex rgb color for mild blue */ title1 ls=1.5 "Simple Column Chart"; proc gchart data=my_data; vbar time / discrete type=sum sumvar=amount maxis=axis1 raxis=axis2 autoref clipref cref=graycc coutline=black width=6 html=htmlvar des='' name="&name"; run; quit; ODS HTML CLOSE; ODS LISTING;