Dashboards & Visualizations

Change the font size of the afterlabel, before label and the classfield in the signle value chart in Splunk Enterprise 6.4.1

sweetlile
Explorer

Hello,
It's been 3 days that I'm trying to fing a solution to change the font size of the afterLabel, beforeLabel and the classField of the single Value chart. I tried this solution:
adding a new stylesheet where I put this code:

.single-value .single-result {
font-size: 10px !important;
}
.single-value:before {
font-family: "Splunk Icons" !important;
font-style: normal !important;
font-weight: normal !important;
text-decoration: inherit !important;
font-size: 10px !important;
}

and in the xml file I precise this in the top:

<form stylesheet="application.css">

But it doesn't work, I still get the result of the dynamic panel precised by default.
I want to make it smaller like the previous version 6.2
I'm in a dead-end, any ideas please?

Tags (2)
0 Karma
1 Solution

sweetlile
Explorer

Yes I'm trying to control the font-size of the text of the afterlabel, beforelabel and the classfield. I can control the colours.
I used this solution now:

<option name="height">32px</option>

And it does the work, it makes my text smaller.

View solution in original post

0 Karma

sweetlile
Explorer

Yes I'm trying to control the font-size of the text of the afterlabel, beforelabel and the classfield. I can control the colours.
I used this solution now:

<option name="height">32px</option>

And it does the work, it makes my text smaller.

0 Karma

shaskell_splunk
Splunk Employee
Splunk Employee

Stick your custom CSS file in $SPLUNK_HOME/etc/apps/leaflet_maps_app/appserver/static/visualizations/leaflet_maps/contrib/css.

Modify $SPLUNK_HOME/etc/apps/leaflet_maps_app/appserver/static/visualizations/leaflet_maps/visualization.css and append your application.css entry to the end of the file. Just copy and paste an existing line and modify it.

Re-start Splunk and see if that doesn't help. What is it you're trying to do? Are you trying to control the font size of the text in the description? Let me know and I may be able to add it as a feature to the app.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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