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!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...