How do you recreate the Loki log level histogram in the explorer?

I’m learning LogQL and pretty confused as to how I should recreate what seems like a decently simple graph:

I love how log levels are broken down on the timeline and find that super useful.

I’ve looked around for examples of how this is made and spent over an hour trying to create the panel myself, unsuccessfully. How might I go about creating this?