Dashboards & Visualizations

In dashboard for the "single" panel, is it possible to change the length of the button?

zliu
Splunk Employee
Splunk Employee

In dashboard for the "single" panel, is it possible to change the length of the button?

Tags (1)
1 Solution

sideview
SplunkTrust
SplunkTrust

Not directly from the XML im afraid, but if you're willing to create a custom CSS file for your app, then yes.

In your app, create an application.css file (at /etc/<appname>/appserver/static/application.css)

and put this in it:

.SingleValueHolder {
  width:250px;
}

or if you want them to be as wide as possible

.SingleValueHolder {
  width:auto;
}

If you want to customize them further, I recommend installing the Firefox extension called Firebug, and using the inspect mode to look at what CSS rules are applying from the Splunk CSS. This will help you know what styles to create in your CSS to counteract or tweak the default appearance.

View solution in original post

sideview
SplunkTrust
SplunkTrust

Not directly from the XML im afraid, but if you're willing to create a custom CSS file for your app, then yes.

In your app, create an application.css file (at /etc/<appname>/appserver/static/application.css)

and put this in it:

.SingleValueHolder {
  width:250px;
}

or if you want them to be as wide as possible

.SingleValueHolder {
  width:auto;
}

If you want to customize them further, I recommend installing the Firefox extension called Firebug, and using the inspect mode to look at what CSS rules are applying from the Splunk CSS. This will help you know what styles to create in your CSS to counteract or tweak the default appearance.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...