最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

gantt chart - Set ganttConfig within markup for mermaid - Stack Overflow

programmeradmin5浏览0评论

I am trying to adjust the width of the section part of a gantt chart in mermaid.

I tried the following:

%%{init: { ganttConfig: {'leftPadding': '100' } } }%%
gantt
    title A Gantt Diagram
    %% This is a comment
    dateFormat YYYY-MM-DD
    tickInterval 1day

    section A task
        a1          :a1, 2014-01-01, 30d
    section Another Task
        a2    :after a1, 20d
    section Task in Another
        a3 :2014-01-12, 12d
    section yet another task
        a4    :24d

How can I put the mermaid configuration parameters, and specifically the parameters that affect the gantt plugin directly in the markdown.

If that is not possible, where I put the parameters such that the "Markdown Preview Mermaid" visual studio plugin will recognize it?

发布评论

评论列表(0)

  1. 暂无评论