How to configure Pie Chart to represent String States over time

I think you will need to use the elapsed or event.duration functions and format your query like the one shown in this thread.