Splunk Search

Swap X-axis & Y-axis in Chart

freephoneid
Path Finder

Hi,

I've a bar graph containing some values on X-axis & its count on Y-axis (....chart count by contentValue...).

How can I flip the values of X & Y axis so that count will show on X-axis & my values will be displayed on Y-axis?

Can it be done without modifying query?

Thanks!

Tags (1)
1 Solution

araitz
Splunk Employee
Splunk Employee

Sure, just select column chart (rather than bar chart) in the Splunk Advanced Charting view or on your dashboard.

View solution in original post

hjwang
Contributor

If your wanna transform the event's rows and columns, use ... | transpose , or do you just wanna switch the column chart to bar chart?

araitz
Splunk Employee
Splunk Employee

Keep in mind with transpose, the default limit of swapped rows is 5, so you might want to specify a larger number if you use it.

0 Karma

araitz
Splunk Employee
Splunk Employee

Sure, just select column chart (rather than bar chart) in the Splunk Advanced Charting view or on your dashboard.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...