Dashboards & Visualizations

How do you specify an x axis interval on a non time based line chart?

preacher_15
Explorer

I've created a chart using the search: base search | chart values(y) over x

It charts perfectly except for the fact that there isn't an interval for the x axis, and I haven't been able to find a way to edit in an interval through UI options or XML editing.

Is it even possible to have intervals on the x axis if it's not time based? And if it's possible how?

Tags (1)
0 Karma

sajjanshetty15
Loves-to-Learn

Hi @adonio what i want is to provide an interval for x axis. suppose if x axis represents percentage i want the x axis scale to show 0,10,20,30......100% with 10% interval.

0 Karma

adonio
Ultra Champion

can you share some events to better understand what your data looks like?
this works well for me:

| makeresults count=1
| eval percent = "0,10,20,30,40,50,60,70,80,90,100"
| makemv delim="," percent
| mvexpand percent
| eval values = random()%10000
| chart sum(values) as budget over percent
0 Karma

adonio
Ultra Champion

can you elaborate a little?
what is the desired chart should look like? are you looking for example to have a column (bar) with 0 values between bars with values if for example for x=1 y=10 and for x=3 y=20 but there arent any values for x=2 ?

0 Karma

sajjanshetty15
Loves-to-Learn

Hi @adonio what i want is to to plot a chart with x axis as percentage and y axis as budget. the axis scale should be 0,10,20,....100% with 10% interval. Iam not able to specify this interval in UI edit page..is there a way where i can achieve this?

0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...