stack the chart by event type