Aggregations for displaying data in a line graph

Hey Guys,

Let’s say I have some click streaming data flooding into druid. Then let’s say that part of that data is a timestamp, a label(categorical variable) and some other numbers. How would I go about creating an metric specification that gave me counts for each label in some time interval(say every minute?). I really just want to show a line graph where the X-axis is counts the Y-axis is time and I have a line for each label where the plot is that labels count moving across the graph. Would any of you fine people know how to accomplish what that or a direction to point me in?

Thank you
-Gregory