Dashboards & Visualizations

Font size

Khuzair81
Path Finder

Hi All, 

I have a dashboard with chart which is representing Count by Dates. I have increased the font size of count value but need help in increasing the font size of Date. Below XML I'm using currently. 

<row>
    <panel>
        <html>
             <style>
                #test th{
                   font-size: 15px !important;
                   font-weight: bold !important;
} </style>
</html> </panel>
</row>

Thanks

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

It might depend on the chart type - assuming column chart - try this:

        <style>
          #test g.highcharts-xaxis-labels text {
            font-size: 13px !important;
            font-weight: bold !important;
          }
        </style>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

You mentioned that you are using a chart, yet the CSS style you shared is for table headers (th). Is your "chart" actually a table and you want the table data (td) font size to change as well or is there something else going on?

0 Karma

Khuzair81
Path Finder

Sorry @ITWhisperer. I posted the wrong one

PFB

<row>
    <panel>
        <html>
             <style>
                #test g[transform] {
                   font-size: 15px !important;
                   font-weight: bold !important;
} </style>
</html> </panel>
</row>

 

0 Karma

Khuzair81
Path Finder

@ITWhisperer any help. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It might depend on the chart type - assuming column chart - try this:

        <style>
          #test g.highcharts-xaxis-labels text {
            font-size: 13px !important;
            font-weight: bold !important;
          }
        </style>

garima_13
Engager

Thank you @ITWhisperer  this saved my day.. I read so many posts and saw videos on how to change font size of column charts and your solution was spot on.

0 Karma

Khuzair81
Path Finder

@ITWhisperer thanks for the help. Is there any doc where i can get these for all type visualization. It will be really helpful. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If there is any documentation, I am unaware of it, I just inspect the html and figure out what elements and classes and other specifiers to use. Obviously, the issue with that is that sometimes the viz implementation varies between splunk releases so you have to keep an eye on how your dashboards are operating under different releases.

Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...