question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add capability for gantt diagrams

See original GitHub issue

This is not intended for complete project planning but as a complement to a report it would be nice to be able to draw a gantt diagram.

Example of suggested syntax:

gantt
    dateFormat yyyy-mm-dd
    title Adding gantt diagram functionality to mermaid

    section Design
        Design jison grammar            :des1, 2014-01-01, 2014-01-04
        Create example text             :des2, 2014-01-01, 3d
        Bounce gantt example with users :des3, after des2, 5d

    section Implementation
        update build script             :2014-01-02,1h
        Implement parser and jison      :after des1, 2d
        Create tests for parser         :3d
        Create renderer                 :5d
        Create tests for renderer       :2d
        Add to mermaid core             :1d

    section Documentation
        Describe gantt syntax               :a1, 2014-01-01, 3d
        Add gantt diagram to demo page      :after a1  , 2h
        Add gantt to diagram to demo page   :after a1  , 2h

TRhis should render something like the example in the link: http://codepen.io/anon/pen/azLvWR

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
knsvcommented, Mar 5, 2015

Spawning this to a new issue.

1reaction
nickwynjacommented, Mar 3, 2015

Ok, thanks. I’m seeing a mix of outputs even in some charts, like this one for example:

screen shot 2015-03-03 at 1 31 36 pm

Is there a way to normalize this? I’m currently using the axisFormatter (below) you had in one of the test or examples but it’s not clear to me whether this is necessary or how to alter it for my desired output.

        mermaid.ganttConfig = {
            ...
            axisFormatter: [
                // Within a day
                ["%I:%M", function (d) {
                    return d.getHours();
                }],
                // Monday a week
                ["w. %U", function (d) {
                    return d.getDay() == 1;
                }],
                // Day within a week (not monday)
                ["%a %d", function (d) {
                    return d.getDay() && d.getDate() != 1;
                }],
                // within a month
                ["%b %d", function (d) {
                    return d.getDate() != 1;
                }],
                // Month
                ["%m-%y", function (d) {
                    return d.getMonth();
                }]
            ]
        };
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add capability for gantt diagrams #118 - mermaid-js ... - GitHub
Have a vertical line overlaid on the chart on today's date to show progress and place in flow. I really like this overall....
Read more >
Gantt Charts | Atlassian
A Gantt chart is a project management tool that illustrates a project plan. Learn how they can help and see an example of...
Read more >
What Is a Gantt Chart? A Step-by-Step Guide - TeamGantt
A gantt chart is a horizontal bar chart that visually represents a project plan over time. Learn how to create and use a...
Read more >
Gantt Chart 101: A Complete Guide [2023] • Asana
A Gantt chart is a horizontal bar chart used to illustrate the timeline of a project and its tasks. Use our guide to...
Read more >
Gantt Charts Explained in 2022 - Monday.com
A simple Gantt chart provides clarity on deadlines, milestones, and project progress. Everyone on your team knows what they have to work on, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found