Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to sort row axis labels in order on Chart from Table Macro?

David Jiang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2025

I created a chart using the Chart from Table macro. The chart displays inputted data from various fields that I specified. My issue however is that the chart is not displaying the row axis in order as shown in the chart screenshot. I want to sort it so that the shifts are displayed in order (First > Second > Third > Fourth > Fifth). The second screenshot shows the macro sequence that I have set up to generate the chart. I've tried using the sorting options in the nested macros but none of them seem to work. Is there some other way for me to manually specify the order that I want the chart to display the row axis values?

Screenshot 2025-01-27 113928.pngScreenshot 2025-01-27 114140.png

1 answer

2 votes
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2025

Hi @David Jiang ,

As you've mentioned the Chart from Table macro, we suppose that you are talking about our Table Filter, Charts & Spreadsheets for Confluence app.

As we understand, you use a Stacked Column chart type where you choose the 'Shift' column as a Labels column.

The values from this column are taken one by one starting from the first row. If you sort this column in the Table Filter macro, then the order will change (as you have strings and not numbers, the sorting will be alphabetical).

So, to get the sequence as First > Second > Third > Fourth > Fifth, you should have the same sequence in your source table.

If the order is a random one, you may use the Table Transformer and assign a correspondent number to each text value: First = 1, Second =2, Third = 3, and so on. Then you can sort by this new column and get the required sequence.

If you have further questions regarding the app, please contact our support directly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events