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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...