How to add time series visualization to app plugin

  • What Grafana version and what operating system are you using?
    Latest grafana version, mac os monterey 12.2.1

  • What are you trying to achieve?
    I’m hoping to render a time series visualization with prometheus data within my app plugin. I’d like the visualization to match the one displayed on the Explore page.

  • How are you trying to achieve it?
    I noticed that the ExploreGraph component utilizes a PanelContextProvider and PanelRenderer, both of which are a part of @grafana/ui. Should I try to utilize these components for my visualization, or is there a better way to go about this?

  • What happened?
    N/A

  • What did you expect to happen?
    N/A

  • Can you copy/paste the configuration(s) that you are having problems with?
    N/A

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?
    No, just took at look at grafana source code and found ExploreGraph