Splunk Search

How to separate the ordering of a chart Legend with the actual chart? 

dcroteau
Splunk Employee
Splunk Employee

Has anyone know how to "decouple" or separate the ordering of a chart Legend with the actual chart?  I've looked at "labels" under legend, but if I change that I change the ordering of my chart

0 Karma
1 Solution

jihor
Engager

You can achieve it using 'charting.legend.labels' option.

For example,
<option name="charting.legend.labels">["create","read","update","delete"]</option>
will order reorder your CRUD operations from the alphabetical C-D-R-U to desired C-R-U-D

View solution in original post

0 Karma

jihor
Engager

You can achieve it using 'charting.legend.labels' option.

For example,
<option name="charting.legend.labels">["create","read","update","delete"]</option>
will order reorder your CRUD operations from the alphabetical C-D-R-U to desired C-R-U-D

0 Karma

dcroteau
Splunk Employee
Splunk Employee

Jihor. Thank you very much for the response. You are correct. Charting.legend.labels will re-order the legend entries. However, it also reorders the area chart. In my customers case this is not desirable. They want to decouple the chart from the legend in terms of ordering.

0 Karma

dcroteau
Splunk Employee
Splunk Employee

But since it is NOT possible, I am going to accept your answer.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi dcroteau,
I don't think that it's possible to "decouple" the ordering of a chart Legend with the actual chart: the order of a chart legend is alphabetical order and at the end there are OTHER NULL and eventually Total.
Bye.
Giuseppe

Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...