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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...