gantt task time format
Opened this issue · 2 comments
I'm trying this library in a day/week timeframe instead of hour/minute.
I modified render_gantt_matplotlib to add another parameter:
def render_gantt_plotly(
solution: SchedulingSolution,
fig_size: Optional[Tuple[int, int]] = None,
show_plot: Optional[bool] = True,
show_indicators: Optional[bool] = True,
render_mode: Optional[str] = "Resource",
sort: Optional[str] = None,
fig_filename: Optional[str] = None,
html_filename: Optional[str] = None,
time_format: Optional[str] = "%H:%M"
)
and later changed:
times_str.append(t.strftime("%H:%M"))
to:
times_str.append(t.strftime(time_format))
Can this be included?
t.strftime
is used in the render_gantt_matplotlib
function, not plotly. Are you sure about the suggested change?