Splunk Search

Is it possible to hide horizontal lines in column chart?

valentinv
Explorer

Hi guys!

It is possible to hide white horizontal lines in column chart (the ones that appear when you set the interval on Y axis)?

I would like to have 3 lines instead: two threshold with different colors and one line which display the value.

Thanks.

0 Karma

jconger
Splunk Employee
Splunk Employee

You can do something like this:

index=_internal | eval min_threshold=3000 | eval max_threshold=7000 | timechart count(sourcetype) as sourcetype avg(min_threshold) as min_threshold avg(max_threshold) as max_threshold

Then, in the visualization options, set min_threshold and max_threshold as overlays. This will create a column chart with 2 lines.

alt text

valentinv
Explorer

jconger, thanks for replying.

That part you showed me is already done, I need to hide those 2 white lines from background which are by default.

Is it possible?

0 Karma

jconger
Splunk Employee
Splunk Employee

You can hide these lines using CSS like so:

.highcharts-grid path {
display: none;
}

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

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...