Splunk Search

Can I sort the legend of a timechart by value instead of alphabetically?

richnavis
Contributor

The timechart is based on avg response time for webpages, but the legend lists the URL's in alphabetical order. Is there a way to have the legend order by value instead?

Tags (3)
0 Karma

fabiocaldas
Contributor

The solution is explained on: http://docs.splunk.com/Documentation/Splunk/6.1.3/AdvancedDev/Chartcustomization

In my case, instead of legends A,B,C .. I just changed to B,C,A

[B,C,A]

0 Karma

HattrickNZ
Motivator

@ tks that is useful

I just used this to have the legend appear in this order error,warn,info, so this is what you would do with whatever labels you are working for. It is very statis as I was looking for something more dynamic based on the values in the graph.
<option name="charting.legend.labels">[error,warn,info]</option>

Also I was looking at this, anyone know what this does?
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>

0 Karma

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