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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...