All Questions
Tagged with grafana javascript
93
questions
0
votes
0
answers
9
views
How do I extend an existing Grafana Plugin? (the node graph plugin)
I want to extend the functionality of the Node Graph plugin in Grafana. Using the default plugin as a base to start from.
My current approach is to download the folder of the Node Graph plugin and ...
0
votes
0
answers
9
views
How to control the value of a field in an sql query with the Business Text plugin Grafana?
I use the Business Text plugin and I would like to display a different image depending on the value returned by my sql query.
Example:
SELECT Field1 FROM Table1 WHERE id=1
Result:
Field1 = 3
Image to ...
0
votes
0
answers
42
views
How to Access the Selected Time Range of Grafana UI for Plugin Typescript
I want to access the selected time range on the Grafana UI in my Typescript plugin.
Here is my current code:
import { DataSourceInstanceSettings, CoreApp, ScopedVars } from '@grafana/data'; import { ...
0
votes
0
answers
35
views
How can I emulate an anchor href to the same page with different params but using history.pushState?
I'm working on Grafana and using the Dynamic Text plugin for some custom Datetime picker buttons and links. If I create the buttons as anchor elements with an href that references the same dashboard/...
0
votes
0
answers
27
views
GrafanaUI and NextJS 14 Table Cells rendering blank or undefined
I'm running into an issue with the GrafanaUI Plugin component in NextJS 14 where I'm able to create my DataFrame and I can get the correct amount of rows to render depending on my values added into ...
0
votes
0
answers
39
views
I want to change the cells of the table on the Grafana screen one by one
I have a table located in a Grafana screen. When I click on a cell in this table I want to be able to edit it and then when I press the save button the variable I updated in the cell will also be ...
1
vote
1
answer
365
views
Plotly in grafana, avoid clashing plot and legend
I have a grafana dashboard giving my an overview of the electricity usage in my house, from the grid and produced by solar panels. One of the plots is the cumultative production over the day. I made ...
0
votes
0
answers
35
views
Send multiple timestamp fields in influxdb
I want to send two dateTime field in influxdb using node js for each point, as I want to visualize a gantt chart in grafana dashboard eventually. I have tried sending a date object and the utc ...
0
votes
1
answer
25
views
Y axis sets on zero after changing the data, on the graph, using JavaScript
I am using variables, dynamic text and plotly with javascript in grafana.
At the first load the graph shows complete
After changing the data, its like the hole Y axis sets on zero maximun and minimun....
0
votes
0
answers
44
views
How do I plot irregular data in a bar chart? Apache ECharts
I have my data in an array of the following form:
[{xCoord: 0, group: 8, value: 1},
{xCoord: 0, group: 24, value: 2},
{xCoord: 0, group: 25, value: 1},
{xCoord: 1, group: 19, value: 1},
{xCoord: 1, ...
0
votes
0
answers
106
views
Adding Imports and Customizing Echarts/other Plugin Code in Grafana
I'm encountering issues with customizing plugins like Echarts/HTML graphics within Grafana. Specifically, I'm struggling to locate where the code for these plugins is located within Grafana. Ideally, ...
0
votes
0
answers
150
views
RangeError rendering tree with Grafana plugin for Apache echarts from volkovlabs.io
We're trying to render a tree in this Grafana (v10.3.1 (00a22ff8b2)) plugin for apache echarts: link (version 5.1.0) and we could use some help fixing the below "RangeError: Maximum call stack ...
0
votes
1
answer
196
views
Can't convert data from datasource to series map in Grafana + Echarts plugins
I am plotting box-plot using Echarts plugins:
My sample box-plot is here: Examples - Apache ECharts
And my problem is I can't import data into echarts plugins:
My code:
data.series.map((s) => {
...
0
votes
0
answers
191
views
how to use grafana query value in javascript
How can I use the result of a grafana query math expression in a javascript that is in the same visualization as the query, e.g.
Math expression that does give one float number as result:
Now I would ...
0
votes
2
answers
128
views
Is there a way to refresh a webpage using only javascript and browser DevTools?
Problem -Browser Out of Memory
I am in charge of a browser (Edge) tab that runs a Grafana dashboard playlist 24/7 to track stats. After an unpredicted period of time, the tab will show the "Out ...