Grafana Text Panel

We are creating a theme around the graphs in Grafana using text panel and html.

And the requirement is get some aggregation data from elastic search to grafana text panel, is it possible ?
Can anyone suggest something on this.

no the text panel cannot access data from other panels. You will have to implement a custom metrics panel

For now, I have created some graphs using graph panel, then sharing it using iframe in another panel.
I am able to get the graph in text panel, and I have written some points about the graph in the text panel like observations.

What I want is the observations in the text panel to be dynamic, like if I change the graph the observations should automatically get updated.