Renderer for Gantt chart diagrams.
Renders horizontal bar charts with tasks along the y-axis and time along the x-axis. Tasks are grouped by sections.
Example
alias Boxart.Render.Gantt
alias Gantt.{Task, Section, Gantt}
diagram = %Gantt{
title: "Project Plan",
sections: [
%Section{
title: "Phase 1",
tasks: [
%Task{title: "Design", start: ~D[2024-01-01], end: ~D[2024-01-15]},
%Task{title: "Build", start: ~D[2024-01-10], end: ~D[2024-02-01], is_active: true}
]
}
]
}
Gantt.render(diagram) |> IO.puts()
Summary
Functions
Renders a Gantt chart as a string.
Functions
@spec render( Boxart.Render.Gantt.Gantt.t(), keyword() ) :: String.t()
Renders a Gantt chart as a string.
Options
:charset—:unicode(default) or:ascii:width— chart width in characters (default:80)