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!

Meet Duke Cyberwalker | A hero’s journey with Splunk

We like to say, the lightsaber is to Luke as Splunk is to Duke. Curious yet? Then read Eric Fusilero’s latest ...

The Future of Splunk Search is Here - See What’s New!

We’re excited to introduce two powerful new search features, now generally available for Splunk Cloud Platform ...

Splunk is Nurturing Tomorrow’s Cybersecurity Leaders Today

Meet Carol Wright. She leads the Splunk Academic Alliance program at Splunk. The Splunk Academic Alliance ...