Skip to content

Commit

Permalink
Removes mermaid gantt chart title re #8
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchjames committed Nov 7, 2020
1 parent da211c8 commit 63508a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class PlannerMermaid {

generate(planSummary: PlanSummaryData): string {
const {tasks, breaks} = this.generateEntries(planSummary.items);
return this.mermaidTemplate(moment(new Date()).format('Do MMMM YYYY'), tasks, breaks);
return this.mermaidTemplate(tasks, breaks);
}

private generateEntries(items: PlanItem[]): {tasks: string[], breaks: string[]} {
Expand Down Expand Up @@ -59,11 +59,10 @@ export default class PlannerMermaid {
return input;
}

private mermaidTemplate(date: string, tasks: string[], breaks: string[]):string {
private mermaidTemplate(tasks: string[], breaks: string[]):string {
return `
\`\`\`mermaid
gantt
title Day Planner for ${date}
dateFormat HH-mm
axisFormat %H:%M
section Tasks
Expand Down

0 comments on commit 63508a7

Please sign in to comment.