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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

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