VolkovLabs / business-text

The Business Text panel plugin allows you to construct a text visualization template from the values of a dataset returned by a data source query.
https://volkovlabs.io
Apache License 2.0
83 stars 13 forks source link

Add data render mode and passing selected data frame #246

Closed asimonok closed 11 months ago

asimonok commented 11 months ago

Resolves #243 Resolves #247

Example of iteration within panel data:

Data

{ data: [[{ name: 'a' }, { name: 'b' }], [{ age: 10 }, { age: 20 }] ] }

Template

{{#each data.[0]}}
{{name}} - {{#with (lookup ../data.[1] @index)}}{{age}}{{/with}}
{{/each}}
codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (40048c2) 98.91% compared to head (0ae930f) 98.95%.

:exclamation: Current head 0ae930f differs from pull request most recent head d419119. Consider uploading reports for the commit d419119 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #246 +/- ## ========================================== + Coverage 98.91% 98.95% +0.03% ========================================== Files 33 34 +1 Lines 369 383 +14 Branches 44 49 +5 ========================================== + Hits 365 379 +14 Misses 3 3 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.