added legend to stacked bars