data list free / Job (a9) minority (a3) count meansal. begin data clerk no 276 28341.09 clerk yes 87 26244.25 custodian no 14 31178.57 custodian yes 13 30680.77 manager no 80 63374.81 manager yes 4 76037.5 end data. dataset name table. * A first try using tabular data. graph /bar=count by job. * A second try gets the right quantities but doesn't sum them. graph /bar=value(count) by job. graph /bar=sum(count) by job. * Need to weight the data. weight by count. graph /bar=count by job. graph /bar=pct by job. * Controlling percents (still weighted). graph /bar=pct by minority by job /title 'Job % within Minority'. graph /bar=pct by job by minority /title 'Minority % within Job'. graph /bar=pct by job /panel rowvar= minority / title '% of total'. GRAPH /BAR=value(meansal) BY jobcat /PANEL colVAR=minority. weight off. GRAPH /BAR=mean(salary_mean) BY jobcat /PANEL colVAR=minority.