-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
How to set axisFormatter of gantt in mermaid CLI? #428
Comments
try change to: |
Tried, it doesn't report error. But the generated png only conatins strings. $ mermaid -g my.config test.mmd $ cat my.config $ cat test.mmd |
It does't work using escape quotes: |
you are right. i can reproduce with running from command-line. like #171, it's not supported or broken.
|
Is there any to set axisFormatter in mermaid CLI? I don't want to use html. I just want to generate a png from the memraid text. |
yeah it's a manual workaround by doing in browser something like printing, taking screenshot, or save svg and convert to png. |
Closed by release 7.0.0, please reopen if issues remain. |
…yarn/develop/sveltejs/kit-1.0.0-next.180 chore(deps-dev): bump @sveltejs/kit from 1.0.0-next.178 to 1.0.0-next.180
$ mermaid -g gantt.config test.mmd
[SyntaxError: Unexpected token u]
Num files to execute : 1
ready to execute png: test.mmd.png
CONSOLE: [01:03:35 (219)] (from line # in "")
CONSOLE: [01:03:35 (219)] (from line # in "")
CONSOLE: [01:03:35 (220)] (from line # in "")
CONSOLE: TypeError: Requested keys of a value that is not an object. (from line # in "")
TypeError: null is not an object (evaluating 'oDOM.documentElement.attributes.getNamedItem('width').value')
C-c C-c
$ cat gantt.config
{
"titleTopMargin":25,
"barHeight":20,
"barGap":4,
"topPadding":50,
"sidePadding":75,
"gridLineStartPadding":35,
"fontSize":11,
"numberSectionStyles":3,
"axisFormatter": [["%-m/%-d", function (d){return d.getDay() == 1;}]]
}
The text was updated successfully, but these errors were encountered: