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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...