Gantt Charts
Asked by Jacob Yount:

Can the chart plugin for Confluence create Gantt Charts?


Answers:
author: Bob Swift (personal)
body: 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\\completeCreate 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/2007Write docs, 2/4/2007, 2/5/2007Release update,	2/5/2007, 2/5/2007{csv}{csv:output=wiki}Actual, Start, End, Percent\\completeCreate 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/2007Write docs, 2/4/2007, 2/15/2007Release update,	2/5/2007, 2/15/2007{csv}{chart}
```

comments: author: Jacob Yount
body: 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?


author: Bob Swift (personal)
body: 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.


author: Bipin Patel
body: 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!


author: Aaron Edwards
body: 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}
```


author: Jim Constant
body: 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"


author: Andrey Khaneev _StiltSoft_
body: As an alternative you can cretae Gantt chart using [Chart from Table](https://docs.stiltsoft.com/pages/viewpage.action?pageId=8323543#HowtouseChartfromTablemacro-Ganttchart) macro ([Table Filter and Charts](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/server/overview) macro).

comments: author: Jim Constant
body: Thanks, Andrey. That looks simpler so I'll try it out.


author: Takafumi Ohtake -Ricksoft-
body: Hi everyone,

**[Gantt Chart Planner for Confluence](https://marketplace.atlassian.com/apps/1227063/gantt-chart-planner-roadmap-timeline-for-confluence?hosting=cloud&tab=overview&utm_medium=atlassian-community&utm_source=questions&utm_campaign=20220530)** is an option to create Gantt charts in confluence.

And, an article **[Plan Projects and Roadmaps with Gantt Charts in Confluence Cloud](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Plan-Projects-and-Roadmaps-with-Gantt-Charts-in-Confluence-Cloud/ba-p/1929687)** summarizes the pros and cons of various ways to draw Gantt charts in Confluence Cloud. I think it helps you select your best way to draw Gantt charts.


author: Parva C. - Narva Software
body: Hi everyone,

As an alternative if you are looking for advanced but easy to use gantt charts in Confluence, please try out our add-on: **[Easy Gantt Charts for Confluence](https://marketplace.atlassian.com/apps/1222190/easy-gantt-charts-for-confluence)**

You can make gantt charts by entering table data and using drag \& drop features. Let us know if you face any issues.


author: Reg Hawkins
body: 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...........

comments: author: Andrey Khaneev _StiltSoft_
body: Confluence native Chart macro doesn't work with Jira Issues macro, but [Chart from Table](https://docs.stiltsoft.com/pages/viewpage.action?pageId=8323543#HowtouseChartfromTablemacro-Ganttchart) macro ([Table Filter and Charts](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/server/overview) macro) does.


author: Reg Hawkins
body: Thanks, so I am pissing in the wind.

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


author: lececere
body: I've tried to put a jira filter on the page so I can copy the data into a table on the chart. I'd love to hide the jira filter - is there anyway to do that so I just get the gantt chart?

(I also don't want to buy another add on).

Thanks!  
Laurie