# Generate automatically canvas panel

**URL:** <https://community.grafana.com/t/generate-automatically-canvas-panel/120014>\
**Category:** Grafana\
**Tags:** canvas-plugin\
**Created:** [April 22, 2024, 3:09pm UTC](https://community.grafana.com/t/generate-automatically-canvas-panel/120014 "2024-04-22T15:09:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariannacolombo](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mariannacolombo](https://community.grafana.com/u/mariannacolombo)\
**Post date:** [April 22, 2024, 3:09pm UTC](https://community.grafana.com/t/generate-automatically-canvas-panel/120014/1 "2024-04-22T15:09:38Z")

</div>

I have a dashboard with several canvas panels. Each panel is created by values from a mssql db. It is possible to automatically create a new canvas panel based on the values of the db? If a new value is added to the db i want to automatically see in the dashboard a new canvas panel.

---

<div class="post-metadata">

**Author:** ![joachimschiewek](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/joachimschiewek/32/38184_2.png) [@joachimschiewek](https://community.grafana.com/u/joachimschiewek)\
**Post date:** [April 23, 2024, 9:22am UTC](https://community.grafana.com/t/generate-automatically-canvas-panel/120014/2 "2024-04-23T09:22:30Z")

</div>

For the dashboard-repeat function  
each line in your DB must be unique. You therefore need an index which must be a dashboard variable.  
You can then select this in the dashboard repeat options.

What does your data look like?
