atom-mermaid
atom-mermaid copied to clipboard
how to change labels on gantt chart to dates instead of weeks
Awesome library. Thanks to this I can now think of getting rid of GanttProject. 😆 I have one question though. Is there any way to change the labels on the bottom of gantt chart to dates instead of weeks? ガントチャートの下に出ているラベルに週の代わりに日付を表示したい。地域が日本と出ているので、日本語で翻訳してみました。:smile:

Hi @vikmalhotra, It seems not able to specify labels on the bottom. if it is between 1 and 7days, adjust the unit then displayed dates... maybe support that function, if you put the issue to mermaid's issues.
基本的には他の人も参照できるように英語で書くべきだと思っているのですが、英語が苦手なので日本語も併記していただいて大変助かります。 ご質問の件ですが、mermaidのドキュメント、ソースコードを見た限りでは不可能なようです。最終的にはd3に渡されるのですが、その際に日数に応じて単位が自動調整されているようでした。そのため、7日以内であれば、ラベルには日付が表示されるのですが、日数が多い場合に任意の単位を指定する手段は現状ではないようです。 mermaidのissuesもざっと探してみましたが、類似のものはなかったので、要望を出しておけば将来的にはサポートされるかもしれません。