VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

not able to access data.data[1] in case of multiple queries in data source #229

Closed samant-rags closed 8 months ago

samant-rags commented 8 months ago

not able to access data.data[1] in case of multiple queries in data source

datasource has 2 queries say A and B.

In the DynamicTable content or Js section if we try to access data.data[0].xxx works but data.data[1].yyyy does not . Seems like only 1 query result is available in the data object ?

mikhail-vl commented 8 months ago

@samant-rags That's correct, it's the original design of the panel to be able to select a data frame manually.

You can use transformations to merge frames together.

samant-rags commented 8 months ago

@samant-rags That's correct, it's the original design of the panel to be able to select a data frame manually.

You can use transformations to merge frames together.

works like a workaround :) Thanks Mikhail !