Currently I can sort bar segments of a stacked column chart in asc/desc order or keep it unsorted. However I would like to sort them in a custom fashion like in the image. How to do it with custom SAQL or XMD?

Reordering Bar Segments



I used an approach using the SAQL mode. However I also wanted to get rid of the numbers in the legend. Therefore I edited the XMD .json file as well.

Here is my complete answer to the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.