Closed mrtazz closed 9 years ago
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: node bin/mermaid.js -t ./dist/mermaid.forest.css -g ./test/gconfig.json test/gantt.mmd
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:
node bin/mermaid.js -t ./dist/mermaid.forest.css -g ./test/gconfig.json test/gantt.mmd
A sample config file would contain:
{
"titleTopMargin":25,
"barHeight":20,
"barGap":4,
"topPadding":50
,"sidePadding":75,
"gridLineStartPadding":35,
"fontSize":11
,"numberSectionStyles":3
}
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.