Dashboards & Visualizations

How to change font size of a table in Dashboard Studio?

TheBravoSierra
Path Finder

I'm trying to change the font size of a table in a dashboard studio visualization. How is this done in the code? I've tried a few ways but having no luck.

Thanks in advance and I appreciate the help.

Labels (2)

MMahlberg
Explorer

The font size on Dashboards in absolute mode is determined by the amount of pixels you give the dashboard canvas. Click on the background canvas options and change the resolution to your liking:

As a starting point, Splunk suggests 1200x720px which is too small for most applications. just change it to 1920x 1000px and your font will be smaller. 

 

LeonAm
Engager

You can either drag and drop the corners of the table or you edit the position in json: layout > structure. This code should be generated automatically once you created a table in the UI view.

But this works only of you have the dashboard in "absolute" mode. If you selected grid it's not possible to freely resize. You can still change this under layout > type: "grid" or "absolute"

"position": {
    "x": 0,
    "y": 0,
    "w": 800,
    "h": 450
}

 

0 Karma

phwork
Explorer

I'm having the same issue working in Dashboard studio, I am trying to increase the font size of the records in the table .

I added the  "fontSize" Attribute to the table.

And like the suggestions above the Layout is absolute.

Below are the screenshots of the code.

Any suggestions on  how to increase the font size?

 

 
"viz_1qOASu7V": {
            "type": "splunk.table",
            "title": "",
            "description": "",
            "dataSources": {
                "primary": "ds_blah"
            },
            "options": {
                "count": 15,
                "fontSize": 50
            }
 
 
"layout": {
        "type": "absolute",
        "options": {
            "height": 2500,
            "width": 2500,
            "backgroundImage": {
                "sizeType": "cover",
                "x": 0,
                "y": 0,
                "src": "/backgroungimage.jpeg"
            },
            "display": "auto-scale"
        },
 
 
 
 phwork_0-1664300543920.png

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...