Splunk Search

Splunk dashboard studio single value static font size

elend
Path Finder

Hello there, im creating a visualization using dashboard studio and showing some field with single value. But the data font size displayed is dynamic like the capture.

visual-asset.png

 

How to make the data fontsize is static in a certain size?. I already add fontSize value but there is no changes:

"options": {
        "fontSize": 24
    }
Labels (1)
0 Karma
1 Solution

dural_yyz
Builder

https://docs.splunk.com/Documentation/SplunkCloud/9.2.2406/DashStudio/chartsSV#Single_value_2

{
    "type": "splunk.singlevalue",
    "dataSources": {
        "primary": "ds_2x8aw5k1"
    },
    "title": "Title Font",
    "description": "Description Font",
    "options": {
        "majorFontSize": 21
    },
    "context": {},
    "containerOptions": {},
    "showProgressBar": false,
    "showLastUpdated": false
}

This will help you statically set the font size for the values you are displaying.  By default it will set to Auto to make it appropriate for the width of your data returned.  The longer the returned value the smaller the auto text.

dural_yyz_0-1726578771314.png

 

View solution in original post

0 Karma

dural_yyz
Builder

https://docs.splunk.com/Documentation/SplunkCloud/9.2.2406/DashStudio/chartsSV#Single_value_2

{
    "type": "splunk.singlevalue",
    "dataSources": {
        "primary": "ds_2x8aw5k1"
    },
    "title": "Title Font",
    "description": "Description Font",
    "options": {
        "majorFontSize": 21
    },
    "context": {},
    "containerOptions": {},
    "showProgressBar": false,
    "showLastUpdated": false
}

This will help you statically set the font size for the values you are displaying.  By default it will set to Auto to make it appropriate for the width of your data returned.  The longer the returned value the smaller the auto text.

dural_yyz_0-1726578771314.png

 

0 Karma

elend
Path Finder

Thankyou for this, it solve the dynamic size issue. Other question appears from this sample:

panel-size.png

like on OS Description, the value just through the panel. Is it possible or there's option to wrap it?

0 Karma

dural_yyz
Builder

No option to wrap it - honestly you may want to replace your viz with Tables which can treat all of these as text and can wrap.

dural_yyz_0-1726670552240.png

 

Showing a lot of information like you are there are options that a table will provide that may fit better.

0 Karma

elend
Path Finder

okay, well noted. I will consider both option. Thank you for the discussion.

0 Karma
Get Updates on the Splunk Community!

Index This | What are the 12 Days of Splunk-mas?

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

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...