Splunk Search

setting time range for x-axis

mdmaala
Communicator

hi! currently in my graph, I have in y-axis the indicator value and in x-axis the time duration for each colors, green yellow and red.

however, despite the varying duration, the sizes of the bars are still the same. what I want to achieve is that I want the sizes of the bars in the chart expand according to the duration.

for example, if green light is turned on for 25 mins and the yelllow light is for 3 mins the green bar should be longer than the yellow bar.

how will I do this?

i used the format option, but I can't seem to set the range for the x-axis.

I am really new to splunk so I really dont know what to do.

thank you so much!

Tags (1)
0 Karma

efavreau
Motivator

@mdmaala Please provide some screenshots with the search query to show what you have tried so far.

###

If this reply helps you, an upvote would be appreciated.
0 Karma

mdmaala
Communicator

alt text

here's the picture

0 Karma

mdmaala
Communicator

![![alt text][1]][1]

this is what i've done so far, what I want is that the length of the bars depends on the time duration

0 Karma

niketn
Legend

@mdmaala please upload the image to any image sharing site (ensure you mask out any sensitive info) and then add image here using the link to the image here on Splunk Answers by pressing the Image button <img> or sortcut ket Ctrl+G.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

nickhills
Ultra Champion

It maybe just me, but I can't see your image.
Can you share what the tabled data looks like?

If my comment helps, please give it a thumbs up!
0 Karma

mdmaala
Communicator

the tabled data looks like this @nickhillscpl

Duration | GREEN | Yellow | Red
00:00:10 1 0 0 ------ when the value is 1, the light is turned on, so this means that Green light was on for 10 seconds

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