Dashboards & Visualizations

How can I change the default line weight for Line Charts in Splunk

pjAstroMan
Explorer

Hi there, I am wondering if there is a way to change the defaul line weight used with the Splunk Visualisation tools.

 

Kind Regards

Paul J.

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Depending on which chart you are using, you can use CSS to modify the attributes used on the SVG path. Give your panel an id e.g. "panelid" and modify the stroke-width attribute. If you want it to apply to all charts which use the highcharts-series-group element in their SVG remove the initial div[id="panelid"] This CCS would normally be set up in a hidden/non-display panel.

        <style>
          div[id="panelid"] g.highcharts-series-group path {
            stroke-width: 4 !important;
          }
        </style>

 

View solution in original post

0 Karma

pjAstroMan
Explorer

Hi there ITWhisperer, I've not yet delved into to the developmental aspects of Splunk so am not familiar with a lot of the terminology you are using in your response.  From my perspective, I'm just trying to set the default line width associated with a plain search/visualisation to specific weight, such that all Chart ouput defaults to this line weight.

 

Paul.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Fair enough, I had assumed you were building a dashboard, and wanted the line weight of the chart in the dashboard to be set. You have less control over how the default visualisation work outside of a dashboard.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Depending on which chart you are using, you can use CSS to modify the attributes used on the SVG path. Give your panel an id e.g. "panelid" and modify the stroke-width attribute. If you want it to apply to all charts which use the highcharts-series-group element in their SVG remove the initial div[id="panelid"] This CCS would normally be set up in a hidden/non-display panel.

        <style>
          div[id="panelid"] g.highcharts-series-group path {
            stroke-width: 4 !important;
          }
        </style>

 

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...