Dashboards & Visualizations

Set Height of Panels in Simple XML?

muebel
SplunkTrust
SplunkTrust

I have created a chart panel in a dashboard in Simple XML. Is there a way to set the height to a certain value beyond what comes by default as being part of a row?

Tags (2)
1 Solution

emma
Splunk Employee
Splunk Employee

Yes you can change the height with the height parameter, as documented here:

http://www.splunk.com/base/Documentation/latest/Developer/AddAChart#set_chart_specific_options

For example:

<dashboard>
 <label>My dashboard</label>
 <row>
  <chart>
   <searchName>My saved report</searchName>
    <option name="charting.chart">line</option>
    <option name="height">200</option>
   </chart>
  </row>
</dashboard>

View solution in original post

emma
Splunk Employee
Splunk Employee

Yes you can change the height with the height parameter, as documented here:

http://www.splunk.com/base/Documentation/latest/Developer/AddAChart#set_chart_specific_options

For example:

<dashboard>
 <label>My dashboard</label>
 <row>
  <chart>
   <searchName>My saved report</searchName>
    <option name="charting.chart">line</option>
    <option name="height">200</option>
   </chart>
  </row>
</dashboard>

muebel
SplunkTrust
SplunkTrust

oop, thats an easy one heh. Went over the documentation but must have missed that bit. Thanks!

feickertmd
Communicator

That changes the size of the object (chart, in this case), but what about changing the size of the containing ?

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...