|
1 | | -# <img src="src/img/plotly.svg" width="30" style="margin-bottom:-5px"> Plotly Panel |
| 1 | +# Plotly Panel |
2 | 2 |
|
3 | 3 | [https://github.com/ae3e/ae3e-plotly-panel](https://github.com/ae3e/ae3e-plotly-panel) |
4 | 4 |
|
5 | | -Render chart from any datasource with [Plotly](https://plotly.com/javascript/) (An open source javascript graphing library) |
| 5 | +Render any kind of charts from any datasource with [Plotly](https://plotly.com/javascript/) (An open source javascript graphing library) |
6 | 6 |
|
7 | 7 | Unlike the [natel-plotly-panel](https://github.com/NatelEnergy/grafana-plotly-panel), this plugin is not limited to specific types of charts. But, on the other hand, the user interface is really rough in order to let users to set all options available in Plotly. |
8 | 8 |
|
9 | 9 | The *Data*, *Layout* and *Config* fields match the common parameters described in [Plotly's documentation](https://plotly.com/javascript/plotlyjs-function-reference/). They must be in JSON format. |
10 | 10 |
|
11 | 11 | Data provided by the datasource can be transformed via a user-defined script before to be injected in the Plotly chart. The script includes 2 arguments : |
12 | 12 | - `data` : Data returns by the datasource |
13 | | -- `variables` : Object that contains [Grafana's variables](https://grafana.com/docs/grafana/latest/reference/templating/) available in the current dashboard |
| 13 | +- `variables` : Object that contains [Grafana's variables](https://grafana.com/docs/grafana/latest/variables/) available in the current dashboard (user variables and few global variables : `__from`, `__to`, `__interval` and `__interval_ms`). |
14 | 14 |
|
15 | 15 | The script must return an object with one or more of the following properties : `data`, `layout`, `config`. |
16 | 16 |
|
@@ -43,4 +43,11 @@ Plotly panel editor : |
43 | 43 |
|
44 | 44 | Example of a wind rose chart : |
45 | 45 |
|
46 | | - |
| 46 | + |
| 47 | + |
| 48 | +Example of heatmap and 3D chart : |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +Example of custom chart and boxplot : |
| 53 | + |
0 commit comments