Here is the way to pie chart using proc template and ODS. you can try below code:- Proc sql; create table input_for_graph as select model, make, type from sashelp.cars WHERE make in ('Chevrolet','Audi') ; run; Proc Template; define Statgraph my_pie; Begingraph; Layout Region; Piechart Category= type/ datalabellocation = outside CATEGORYDIRECTION= clockwise start= 180 Name= 'pie'; discretelegend 'pie'/ title= 'Cars Pie_Chart'; endlayout; endgraph; end; run; proc sgrender data= input_for_graph template= my_pie; run; Bala Saladi
... View more