Plotly table drilldown with plain js

I’m new to plotly and trying to figure out how to draw a graph that allows a user to drilldown by clicking on a row. All examples I see are with the dash library, I was wondering if anyone has an example that uses plain JS.

Example table 1:

Name Calls
Mike 5
Jane 5

When the user clicks on Mike

It transitions into a second table which shows further breakdown like this with a “back button”

Date Amount
10/06/2021 1
10/07/2021 4

A bit like below but with 2 tables instead of charts

enter image description here