Dashboards & Visualizations

How to change the X title from continuous to discrete

aditsss
Motivator

Hi Everyone,

I have below query:

index=abc ns=hjk app_name=pi "ARC EVENT RECEIVED FROM SOURCE"| rex "RID:(?<RID>(\w+-){4}\w+)-(?<sourceagent>\w+-\w+)"
| stats count(RID) as count, values(RID) as RID by sourceagent| rename sourceagent as "Source"|fields Source count

I have created this as a bar chart.

I am getting X axis as count and Y axis as source.

I want X-AXIS should be discrete as it shows the file count.

How can I do that.

Can someone guide me on that.

I have attached as screenshot.

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Not sure what you are asking for here - counts by their very nature are discrete - do you want the label of the x-axis to be something different? do you want the legend to be different? 

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...