A way to implement this is by adding a new optional argument of plot_gantt_chart that takes a callable similar to the operation_node_labeler parameter in the latest version of plot_disjunctive_graph. This callable would return a label for each ScheduledOperation object, which would then be displayed in the corresponding box. I prefer this option over passing a template string because it is a more flexible approach.
Additionally, another optional parameter could be added to include extra text in the legend, which can help explain the symbols used in the labels. This functionality is already available in plot_disjunctive_graph with the legend_text parameter.
Answering to:
_Originally posted by @dogukansert in https://github.com/Pabloo22/job_shop_lib/issues/3#issuecomment-2430958312_
A way to implement this is by adding a new optional argument of
plot_gantt_chart
that takes a callable similar to theoperation_node_labeler
parameter in the latest version ofplot_disjunctive_graph
. This callable would return a label for eachScheduledOperation
object, which would then be displayed in the corresponding box. I prefer this option over passing a template string because it is a more flexible approach.Additionally, another optional parameter could be added to include extra text in the legend, which can help explain the symbols used in the labels. This functionality is already available in
plot_disjunctive_graph
with thelegend_text
parameter.