Reporting

Increase Embedded Report Height

mvanderlist_spl
Splunk Employee
Splunk Employee

When enabling the embedded report, and including the iframe somewhere else, you can adjust the width, but the height seems to remain at 300px – even if you increase it.

Does anyone know how to increase the height of an embedded report? Changing the height of the iframe has no affect, but the width changing does work.

Tags (1)
0 Karma
1 Solution

mvanderlist_spl
Splunk Employee
Splunk Employee

To update with an answer, you can change the height of the visualization by dragging the divider in the middle of the visualization tab of a search, which adds the following to the saved search in the savedsearches.conf file:

display.page.search.tab = visualizations
display.visualizations.chartHeight = 634

Which in turn after click "embed" generates an iframe like so:
<iframe height="670" width="480" frameborder="0" src="…removed…"></iframe>

Notice how the iframe height before was 336 with a final embedded chart of 300px? Now the iframe is 634+36=670px.

View solution in original post

0 Karma

mvanderlist_spl
Splunk Employee
Splunk Employee

To update with an answer, you can change the height of the visualization by dragging the divider in the middle of the visualization tab of a search, which adds the following to the saved search in the savedsearches.conf file:

display.page.search.tab = visualizations
display.visualizations.chartHeight = 634

Which in turn after click "embed" generates an iframe like so:
<iframe height="670" width="480" frameborder="0" src="…removed…"></iframe>

Notice how the iframe height before was 336 with a final embedded chart of 300px? Now the iframe is 634+36=670px.

0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

Have you tried testing in a completely blank html page ?

I think you maybe have some other CSS that is overwriting the height attribute on the iframe element. I just tested this to double check - and height and width both allow you to change the size (it is not stuck at 300px).

Try using the developer tools on Chrome or Firefox to see if there is an overlap maybe ?

0 Karma

mvanderlist_spl
Splunk Employee
Splunk Employee

Just tried that.

<html>
<body>
<iframe height="600" width="980" frameborder="0" src="...removed..."></iframe>
</body>
</html>

The iframe indeed has a height of 600px, but the chart itself still remains at 300px.

Looking inside the iframe I see this as one of the first divs:
<div class="chart shared-jschart" data-cid="view938" data-view="views/shared/JSChart" data-render-time="0" style="width: 100%; height: 300px;">

This explains the dynamic width but the locked height.

I'm using Splunk 6.2.3 and viewing on Chrome on Mac OS X.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...