-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to generate gantt diagram with mermaid CLI #158
Comments
Hello! Turned out to be some issues with that. Given the recent changes... :) Youc an generate the gannt diagram with something like this command line: You need to add some width for the body in the css to make it a bit wider then the default. This is committed and pushed but not yet (fully tested and) included in a release. |
(And yes I noticed the %% in before the graph definition messes thing up... Will look at that sometime, you can have comments in the defintion though). |
oh sweet, I will give it a try. Thanks for the quick response! |
Just to follow up here. I couldn't get the cli to work as it kept breaking for configuration missing. But I got some basic charts working in the browser. Just needs some more CSS tweaking :) |
Yeah I can see how that would have been unclear. Sorry about that. So the command line would be:
A sample config file would contain:
I used the chart definition above without the leading %%. The configuration regarding the axis formatting will not work, so I have excluded that. This is because it contains javascript and the configuration is in a JSON file. I hope this makes it easier to get things to work. |
awesome, that works! Somehow I managed to break something before as I ran almost the same thing. Thanks again! |
A fix for this has been released in version 0.5.0 |
Hi!
This project looks super awesome and I wanted to give it a try to play with generating some Gantt diagrams. However after a couple of attempts I'm unable to even generate a png with the mermaid cli from the example given on the page. I've installed it from GitHub master as I ran into the problem with comments not being parseable which is fixed with #141. However it still breaks for me with comments and it also breaks with some missing attribute "height" in the phantomjs phase. I've tried to generate png and svg with
-p
and-s
as well. The png run shows the same output and the svg run generates a broken svg with a giant black box. I have no idea how to debug this, so any pointers would be great. If attached some information below, let me know if there's something else I can provide.The text was updated successfully, but these errors were encountered: