Loki pie charts

Hi, I’m trying to create a dashboard with a pie chart in loki. But I couldn’t find how to do it in the documentation. Appreciate if I can get some help with the query.
Thank you.