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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...