---
title: "Use cases | Grafana Plugins documentation"
description: "Learn how to import and use external JavaScript libraries like Bootstrap, Chart.js, D3, Mermaid, and others in the Business Text panel."
---

# Use cases

> Note
> 
> In Grafana 11, the functionality of external JavaScript resources is deprecated, and the **External Resource &gt; Scripts** parameter has been removed. You can import JavaScript libraries directly in the code.
> 
> The Business Text panel supports JavaScript library imports in **Before content rendering** starting from version 5.3.0.

You can import external JavaScript libraries in both the **Before content rendering** and **After content ready** parameters.

[](/media/docs/grafana/panels-visualizations/business-text/before.png)

The Business Text panel enables the loading of additional JavaScript using external URLs like CDN (Content Delivery Network). Use that functionality to execute JavaScript functions in the [JavaScript Code](/docs/plugins/marcusolsson-dynamictext-panel/latest/javascript-code/) editor.

## Public folder

To prevent loading third-party URLs, store CSS and JavaScript files in the public folder on a Grafana instance.

- To load from an external Grafana instance, use `https://GRAFANA-URL/public/grafanaCSS.css`.
- To load from a local Grafana instance, use `/public/grafanaCSS.css`.

## External JavaScript resources

Below, you can find a collection of breathtaking use cases, the perfect examples of using external JavaScript libraries in the Business Text plugin.

> Note
> 
> Use the **All rows** or **All data** template to execute the template only once. With **Every row**, the **Content** applies to every row of retrieved data. Even though the data frames of the specified data source are not used, the plugin runs the code for each retrieved row.

Expand table

| Solution                                                                                | Description                                                                                   |
|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [Bootstrap](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/bootstrap/)   | The most popular HTML, CSS, and JS library in the world                                       |
| [Chart.js](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/chart-js/)     | Chart.js is one of the popular open source charting libraries                                 |
| [D3](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/d3/)                 | D3 is a free, open-source JavaScript library for visualizing data                             |
| [Flowchart](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/flowchart/)   | Draws simple SVG flow chart diagrams from textual representation of the diagram               |
| [Leaflet.js](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/leaflet-js/) | A JavaScript library for interactive maps                                                     |
| [MapBox GL](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/mapbox-gl/)   | JavaScript library for building web maps and applications with Mapbox’s mapping technology    |
| [Mermaid](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/mermaid/)       | JavaScript-based diagramming and charting tool that dynamically creates and modifies diagrams |
| [Plotly](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/plotly/)         | Open Source Graphing Libraries                                                                |
| [Tailwind CSS](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/tailwind/) | A utility-first CSS framework                                                                 |
| [TensorFlow](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/tensorflow/) | Library for machine learning in JavaScript                                                    |
| [YouTube Video](/docs/plugins/marcusolsson-dynamictext-panel/latest/use-cases/youtube/) | YouTube player component                                                                      |
