Stacked Bar Graph From Timeseries Data

How can I visualize time series data as a stacked bar. What I need is a continues bar graph, every bar represents a 5 min time span and the height of the bar is the request count, the bar should be stacked/sectioned by response status code respective color.
Example:
image

Have you tried displaying your data using stacked bars, like this example?