Logic Machine Forum
grafana panels do not display correctly in iframe - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: grafana panels do not display correctly in iframe (/showthread.php?tid=2391)



grafana panels do not display correctly in iframe - baggins - 17.12.2019

Hi,

I wanted to add some fancy graphs that I generate in grafana based on Logic Machine data but ran into some issue.
When the graph is loaded for the first time in a LM panel, some sort of scrollbar is shown:
   

When I then manually refresh the frame it is shown correctly:
   

I've tested this also with a simple webpage with an iframe and there the graph is correctly displayed from the start. Also in the visualization editor in user mode the graph is displayed correctly.

Then panel size in grafana for this graph is 393x230. I tried with various sizes of the iframe in LM, but this makes no difference.
I can of course set a refresh interval on the iframe in LM and that works also but that does not eliminate the fact that each time I go to the LM panel I get the image with the scrollbar and besides that this causes a redraw of the graph which is unpleasant...
Firmware version 20160714.

Any idea what might be going on?


RE: grafana panels do not display correctly in iframe - admin - 17.12.2019

Upgrade firmware and disable "persistent mode" for frame and see if it helps.


RE: grafana panels do not display correctly in iframe - baggins - 19.12.2019

(17.12.2019, 11:13)admin Wrote: Upgrade firmware and disable "persistent mode" for frame and see if it helps.

At the moment I can't upgrade...
Will try later.


RE: grafana panels do not display correctly in iframe - batistacaceres - 22.06.2023

Element frame doesnt show my dashboard in grafana, I have also tested to share a panel and it doesnt work. If I try with my explorer directly they work.

Can I show from a frame element my dashboard or my panel make in grafana?
Is ther any way to show my grafana dashboard or any of my panels in grafana?

I have the last firmware: 20230420
I have activated: Allow external access via iframe inĀ  vis. configuration, and Allow external resources (JS/CSS)

thank you, very much.
best regards

Roger


RE: grafana panels do not display correctly in iframe - admin - 22.06.2023

See this: https://community.grafana.com/t/load-denied-by-x-frame-options-panel-url-does-not-permit-framing/20296