# Adding legend to the chart

**URL:** <https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816>\
**Category:** GanttProject Desktop Support\
**Created:** [February 23, 2024, 10:55pm UTC](https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816 "2024-02-23T22:55:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiJU](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/miju/32/4814_2.png) [@MiJU](https://help.ganttproject.biz/u/MiJU)\
**Post date:** [February 23, 2024, 10:55pm UTC](https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816/1 "2024-02-23T22:55:18Z")

</div>

Hello,

I am using different colors for different tasks and I would like to add a legend somewhere on the chart, so when I export the chart to PDF and send it to someone outside the organization, they will understand what the colors signify.

Is there a possibility to add a legend to the chart? Or maybe is there a way to input a text message below or above the chart or any other possible workaround?

---

<div class="post-metadata">

**Author:** ![DmitryBarashev](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/dmitrybarashev/32/406_2.png) [@DmitryBarashev](https://help.ganttproject.biz/u/DmitryBarashev)\
**Post date:** [February 25, 2024, 11:09am UTC](https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816/2 "2024-02-25T11:09:35Z")

</div>

No such option, sorry.  
As a workaround, you may try using fake colored task bars and task names as a kind of legend (see the screenshot). You will need to show the task names for all tasks though.

 ![image](https://help.ganttproject.biz/uploads/default/original/2X/4/4040e39541297e88691c16caf8ec12505938268d.png)

---

<div class="post-metadata">

**Author:** ![malcaraz](https://help.ganttproject.biz/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@malcaraz](https://help.ganttproject.biz/u/malcaraz)\
**Post date:** [February 26, 2024, 8:58am UTC](https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816/3 "2024-02-26T08:58:39Z")

</div>

@DmitryBarashev Very creative and I’ll use it! Thanks for sharing! 👏

---

<div class="post-metadata">

**Author:** ![DmitryBarashev](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/dmitrybarashev/32/406_2.png) [@DmitryBarashev](https://help.ganttproject.biz/u/DmitryBarashev)\
**Post date:** [February 26, 2024, 10:37am UTC](https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816/4 "2024-02-26T10:37:23Z")

</div>

I created a new enhancement request in the issue tracker:

> <https://github.com/bardsoftware/ganttproject/issues/2423>
>
> It is handy to have a chart legend that explains the color or pattern coding of …tasks. 
> See discussion on the Support portal: https://help.ganttproject.biz/t/adding-legend-to-the-chart/8816
