Plotting a gantt-chart like plot

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)

How would you approach this?

thanks!

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

for something actually very close to this.

1 Like

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.

You can use VegaLite.jl for Gantt charts in Julia: Bar Charts · VegaLite.jl (queryverse.org)

1 Like