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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...