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
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...