adapted stacked bars to use date and static data