Histogram for time tracking

I am currently tracking my position using the Home Assistant companion app on my phone. Now I would like to get an weekly overview of how much time I have spent at each location, i.e. a histogram of the time spent at ‘home’, ‘away’, ‘work’, and so on. Does anyone know how to make this?

Best Regards,