Produce the bar-line chart. This graph uses the data set entitled ELECTRIC found in the SASHELP library. The SUMVAR= option in the BAR statement specifies the variable that determines the height of the bars. The SUMVAR= option in the PLOT statement specifies the plot variable. The HTML= options associate data tip text with the bars and plot points.
proc gbarline data=sashelp.electric; bar year / discrete sumvar=Revenue subgroup=Customer raxis=axis1 maxis=axis3 legend=legend1 html=revtip name="US_Electric_Power" des="Chart of US Electricity Generation Sources and Consumers"; plot / sumvar=AllPower html=alltip legend=legend2 axis=axis2; plot / sumvar=Coal html=coaltip; plot / sumvar=Nuclear html=nuketip; plot / sumvar=NaturalGas html=gastip; plot / sumvar=Hydro html=hydrotip; plot / sumvar=Other html=othertip; run; quit;