Is it possible to dynamically create entire Grafana dashboards with the use of a script?

Does anyone know if it is possible to dynamically create entire Grafana dashboards with the use of a script?

Sorry, I think I’ve formulated my question wrong.

My goal is to visualize a hierarchical tree view per panel. Do you know if this is possible?