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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...