Dashboards & Visualizations

Default Value Dashboard Linechart

shahbaz
Engager

Hi, 

Need to create dashboard with visualization type as line chart,  need to have a default value which is as reference line, for this i have added eval Target=1|table Target in splunk query.

Now i need to highlight the target/default  line always, and this line is to thicker than remaining lines in visualization and Bold, so that it can be distinct from others. 

Need to achieve this only from Splunk , no JS or others is needed.

TIA.

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can do this with some CSS - this would normally be in a hidden panel - in the example below, it refers to a panel holding you linechart as "referenceline", you would need to give your panel this id. Also, it is assuming that the reference line is the first line (it might be the second line if the indexing starts at zero) - you may need to adjust this so that it refers to your reference line.

          div[id^="referenceline"] g.highcharts-series-group g:nth-child(1) path {
            stroke-width: 2 !important;
          }
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

  🚀 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 ...