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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...