Can the chart plugin for Confluence create Gantt Charts?

3 answers

1 accepted

This widget could not be displayed.

Yes it does. However, it looks like the documentation page that use to exist is not publicly available anymore. It is not clear that part of the chart plugin has been maintained completely as one of the old examples does not work. At some point, this will all be corrected.

Here is a simple example that works - use insert wiki markup:

{chart:type=gantt|dataOrientation=vertical|columns=,,1,2,3,4|displayData=before|width=500|dateFormat=MM/dd/yyyy}

{csv:output=wiki}
Plan, Start, End, Percent\\complete
Create issue, 1/30/2007, 2/1/2007, 30%
Provide examples, 1/30/2007, 2/7/2007, 40%
Write code/tests, 2/3/2007, 2/4/2007
Write docs, 2/4/2007, 2/5/2007
Release update,	2/5/2007, 2/5/2007
{csv}

{csv:output=wiki}
Actual, Start, End, Percent\\complete
Create issue, 1/30/2007, 2/11/2007, 100%
Provide examples, 1/30/2007, 2/17/2007, 90%
Write code/tests, 2/3/2007, 2/14/2007
Write docs, 2/4/2007, 2/15/2007
Release update,	2/5/2007, 2/15/2007
{csv}

{chart}

Another quick question, would it be possible to create a chart without having a built in project plan? Say, if I wanted to use a third party software to create my own project plan, could I then use the Chart plugin to display that project plan as a Gantt Chart?

Yes, only if you could get the software to create a table (csv like above) or similar that the gantt chart type needs to create a chart.

Hi - I have plotted the gantt chart. Would want to also display the value labels for each bar i.e. start and finish dates in example....unable to find out such attribute.

{chart:type=gantt|xLabel=Projects|yLabel=Planned Dates|legend=false|timeSeries=true|timePeriod =month|dataOrientation=vertical|columns=,,1,2,3,4,5|rangeAxisLowerBound=11/01/2013|rangeAxisUpperBound=12/31/2014|displayData=false|width=1000|dateFormat=MM/dd/yyyy}
{excerpt-include:Consolidation Server Refactoring|nopanel=true}
{excerpt-include:TC X9 Interface Flexibility (Xmapper replacement)|nopanel=true}
{excerpt-include:TC 1.0 CS Support JIRA Uplift - P1|nopanel=true}
{excerpt-include:TC 1.0 CS Support JIRA Uplift - P2|nopanel=true}
{excerpt-include:TC 1.0 Branch Volume Improvements|nopanel=true}
{excerpt-include:TC 1.0 CS SCERs Uplift|nopanel=true}
{chart}

On each child pages below is the code....e.g.TC 1.0 CS Support JIRA Uplift - P1

{excerpt}
{table-plus:id=CSSupportJIRAUpliftP1Planned|columnTypes=S,-,.|autoNumber=true}
|| Plan || Start|| End|| Percent\\Complete||
|TC 1.0 CS Support JIRA Uplift - P1| 02/06/2014| 03/10/2014| 100% |
{table-plus}
{excerpt}

Any help would be appreciated! Thanks!

My current version of Confluence didn't like the CSV macros in Bob's original answer. I was able to get it working by pasting the below into the page as 'confluence wiki markup':

{chart:type=gantt|dataOrientation=vertical|columns=,,1,2,3,4|displayData=before|width=500|dateFormat=MM/dd/yyyy}
|| Plan || Start || End || Percent\\complete ||
|| Create issue | 1/30/2007 | 2/1/2007 | 30%
|| Provide examples | 1/30/2007 | 2/7/2007 | 40%
|| Write code/tests | 2/3/2007 | 2/4/2007
|| Write docs | 2/4/2007 | 2/5/2007
|| Release update | 2/5/2007 | 2/5/2007

|| Actual || Start || End || Percent\\complete ||
|| Create issue | 1/30/2007 | 2/11/2007 | 100% |
|| Provide examples | 1/30/2007 | 2/17/2007 | 90% |
|| Write code/tests | 2/3/2007 | 2/14/2007 |
|| Write docs | 2/4/2007 | 2/15/2007 |
|| Release update | 2/5/2007 | 2/15/2007 |
{chart}

Hi Aaron,

Did you have to do anything special to get this to work. I've tried what you have above as well as an example in the Atlassian documentation and all it does is display, "No Data Available".

I've copied and pasted your example above and I've created an empty chart macro just '{chart:type=gantt|dataOrientation=vertical|columns=,,1,2,3,4|displayData=before|width=500|dateFormat=MM/dd/yyyy}' and then pasted the data into it but I get the same thing - "No Data Available"

This widget could not be displayed.

As an alternative you can cretae Gantt chart using Chart from Table macro (Table Filter and Charts macro).

Thanks, Andrey. That looks simpler so I'll try it out.

This widget could not be displayed.

Has anyone ever got the chart macro actually pulling data from JIRA using a JIRA filter and displaying in the Gantt or am I just trying in vane...........

Confluence native Chart macro doesn't work with Jira Issues macro, but Chart from Table macro (Table Filter and Charts macro) does.

Thanks, so I am pissing in the wind.

Another plug in to buy..........great.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

406 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you