We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
width
When I try to alter the width of the nodes in the timeline diagram with the width configuration, the width configuration is not applied.
It appears to be hardcoded here: https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/diagrams/timeline/timelineRenderer.ts#L332
Create a timeline Configure the width Feel sad
No response
{ "theme": "default", "themeVariables": { "fontSize": "24px" }, "timeline": { "width": 300 } }
timeline title Sample Timeline
2022 : October <br> Something that happened in October 2023 : Something that happened in 2023
Live Editor Chrome
https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/diagrams/timeline/timelineRenderer.ts#L332
This should probably be conf.width . . . or conf.timeline.width.
conf.width
conf.timeline.width
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
When I try to alter the width of the nodes in the timeline diagram with the
width
configuration, the width configuration is not applied.It appears to be hardcoded here:
https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/diagrams/timeline/timelineRenderer.ts#L332
Steps to reproduce
Create a timeline
Configure the width
Feel sad
Screenshots
No response
Code Sample
timeline
title Sample Timeline
Setup
Live Editor
Chrome
Suggested Solutions
https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/diagrams/timeline/timelineRenderer.ts#L332
This should probably be
conf.width
. . . orconf.timeline.width
.Additional Context
No response
The text was updated successfully, but these errors were encountered: