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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...