Generate panel with dynamic fields

Is it possible to generate time series panels that use another table as the source for time series topics?

I have one table with all my data:

And one table with my data topics:

Is it now possible to create a time series panel where I can dynamically choose the topics I want to display, including their unit? My database is based on PostgreSQL, but creating any REST API between Grafana and PostgreSQL would be possible.


There are multiple ways you can do it:

  1. Use dashboard variables to select the topic and then use it in the data source for the Time Series panel.

  2. Use the Apache ECharts panels to make it dynamic to choose topics directly on the panel.

We covered this topic in the video: