# Plotting a gantt-chart like plot

**URL:** <https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [February 13, 2017, 5:04pm UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087 "2017-02-13T17:04:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbrunaud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bbrunaud/32/1737_2.png) [@bbrunaud](https://discourse.julialang.org/u/bbrunaud)\
**Post date:** [February 13, 2017, 5:04pm UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087/1 "2017-02-13T17:04:34Z")

</div>

Hello,

I would lie to plot a Gantt chart like the following starting from a dataframe, where each row containts `(Task,Unit,InitialTime,Duration,Size)`

 ![](https://global.discourse-cdn.com/julialang/original/3X/f/5/f5a6a3317c1589440c0261d858c25408ff0f2811.png)

How would you approach this?

thanks!

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 13, 2017, 9:07pm UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087/2 "2017-02-13T21:07:35Z")

</div>

You could make your own type containing the data (or just the dataframe) and define a plot recipe for it using the series type. See eg.

[https://github.com/dpsanders/ValidatedNumerics.jl/blob/master/src/plot\_recipes/plot\_recipes.jl](https://github.com/dpsanders/ValidatedNumerics.jl/blob/master/src/plot_recipes/plot_recipes.jl)

for something actually very close to this.

---

<div class="post-metadata">

**Author:** ![Marc\_Sevaux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc_sevaux/32/14986_2.png) [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Post date:** [June 4, 2018, 10:18am UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087/3 "2018-06-04T10:18:28Z")

</div>

Hi bbrunaud,  
Did you finally succeeded in writing the Gantt chart plot recipe? If yes, is it available somewhere?  
I will need a similar output (flowshop Gantt charts) but I need to learn more to play with the recipe.  
Thanks for the reply.

---

<div class="post-metadata">

**Author:** ![hdavid16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hdavid16/32/11531_2.png) [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Post date:** [June 14, 2021, 12:11pm UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087/4 "2021-06-14T12:11:01Z")

</div>

You can use VegaLite.jl for Gantt charts in Julia: [Bar Charts · VegaLite.jl (queryverse.org)](https://www.queryverse.org/VegaLite.jl/stable/examples/examples_barcharts/#Gantt-Chart-(Ranged-Bar-Marks)-1)
