Chart macro - include table data
Asked by Mark Wheeler:

I think I'm missing something obvious but I can't work out how to reference table data from the Chart macro in Confluence.

I've read through the documentation on the attached page (<https://confluence.atlassian.com/doc/jira-chart-macro-427623467.html>) but couldn't work it out unfortunately,

An example I'd like to do is shown below. It's the first table on the page and I thought I'd keep it simple by referring to the first column only (ideally I'd like all the data in the chart thou).

Is there another more details or dummies guide to the Chart macro in Confluence or could someone give me some tips on including tables into a chart?

Thanks Mark

![confluence-chart-1.PNG](/t5/image/serverpage/image-id/97383i9E63B32FA823F791/image-size/large?v=v2&px=999 "confluence-chart-1.PNG")![confluence-chart-2.PNG](/t5/image/serverpage/image-id/97384iB546621024311142/image-size/large?v=v2&px=999 "confluence-chart-2.PNG")


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Mark Wheeler](/t5/user/viewprofilepage/user-id/3163878) ,

The standard Confluence Chart macro has limited capabilities, so you'll get smth similar to the following screenshot:

![Chart Macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/97391i90699A9E9CB2A0B1/image-size/large?v=v2&px=999 "Chart Macro.png")As far as I can see, you need a kind of a timeline - try to use the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app.

Change you dates to the standard format and wrap your table in the [Chart from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro) macro:

![Chart from Table Macro 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/97392i890DF925B690D9B4/image-size/large?v=v2&px=999 "Chart from Table Macro 1.png")And here is your result:

![Chart from Table Macro 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/97393iB5F521C045504D9E/image-size/large?v=v2&px=999 "Chart from Table Macro 2.png")

comments: author: Mark Wheeler
body: Thanks for you response [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) .

I'd had a look at Chart from Table and it looks good ... but I've got 60 users so the cost adds up and budgets are always hard to get hold of - hence looking at the in-built chart option.

I still can't work out how to get my table data into the Chart macro. I've put 1 into the "Tables" field but that doesn't show anything. I've left columns blank and changed my table to match the format you've recommended.

Any tips/hints would be greatly appreciated.


author: Katerina Kovriga {Stiltsoft}
body: Try to choose the Line Chart type:

![Chart Macro 3.png](https://community.atlassian.com/t5/image/serverpage/image-id/97410iC8117BDCE04106E4/image-size/large?v=v2&px=999 "Chart Macro 3.png")![Chart Macro 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/97412i01FB6FD5AFA768B0/image-size/large?v=v2&px=999 "Chart Macro 2.png")


author: Mark Wheeler
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) - I've finally got Chart to work. The penny eventually dropped (i.e. I understood the macro properly) when I saw your screenshot and that the table was in the macro. I had incorrectly assumed the table could be outside the macro.

All works now and looks fantastic.

![confluence-chart-3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/97432i02FF0D10550E9606/image-size/large?v=v2&px=999 "confluence-chart-3.PNG")Thanks

Mark


author: Max Foerster - K15t
body: Hey [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

In an effort to maintain transparency in the Community, please be sure to clearly identify this as your company's application and state your affiliation with the company when responding to Community posts. Please have a good read-through of the other [Atlassian Community online guidelines for Marketplace vendors and Solution Partners.](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Atlassian-Community-online-guidelines-for-Marketplace-vendors/ba-p/689723)

Thank you!

Best, Max


author: stephcr@MFCGD.COM
body: Charts are pretty much useless. They only work with tables displaying the info on the screen. You can't wire up attachments or other sources so you have to display the entire table along with the chart summarizing it. With big data sets Confluence bogs down to nothing and all the other usable options are pay only which is also a no go with a large workforce as you have to pay for every Confluence user, not just the users who need the plugin.


Tags: chart

cloud

macro

table