How to find the ID for a table to use in a Bar Chart macro?

Katarina Palm
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!
November 23, 2020

Hi!

I am trying to create a Bar chart using the Chart macro. I have filter for the data I want to show; works fine with a standard pie chart. But when creating a bar chart, I am expected to enter a comma separated list for the table ID(s) to use. I have tables of data on my page,  How do I find table IDs?

3 answers

2 votes
Katerina Kovriga {Stiltsoft}
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.
November 23, 2020

Hi @Katarina Palm ,

As I understand from the Atlassian documentation, the table id selection may be only required if your page structure is very complex, for example, you use section and column macros inside the chart macro body and your tables are all mixed up.

If you use a simple layout, then it is not necessary to fill in this field and you may leave it blank:

Mon 3-1.pngMon 3-3.pngThe standard Chart macro is not very flexible (besides it doesn't work with the dynamic macros), so we can recommend to use the Chart from Table macro provided by the Table Filter and Charts for Confluence app.

Let's take the same table as an example:

Mon 3-2.pngMon 3-4.pngMon 3-5.pngAs you can see, you can filter what items to include into your chart.

This example was created for the Horizontal table orientation:

Mon 3-6.png

And now let's choose the vertical one:

Mon 3-7.pngMon 3-8.pngOur chart has changed - now you can choose which form is more relevant to your case.

0 votes
Michelle Rau HP
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.
November 24, 2020

Oh man, I got this to work once and now I can't remember all the details!

The documentation says "Comma separated list of table ids and/or table numbers (starting at 1) ."

Within the Chart macro, you can have more than 1 table. By default, it appears that the Chart macro will chart the data from all the tables within the macro (combines data). If you tell it table ID 1, then it will only chart the data from the first table. If you tell it table ID 2, then it will only chart the data from the second table, and so on.

https://support.atlassian.com/confluence-cloud/docs/insert-the-chart-macro/ 

trobbs October 6, 2021

The link provided doesn't work (extra characters at the end) so here's a link that does.

0 votes
Katarina Palm
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!
November 23, 2020

Thanks! I saw this option in other answers, but I am primarily looking for a solution within the standard product. Seems it is not very well supported, tough...

BRs, Katarina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events