Skip to content
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

axisFormat does not work for mermaid chart in DiagrammeR #5302

Open
jbukszar opened this issue Feb 19, 2024 · 0 comments
Open

axisFormat does not work for mermaid chart in DiagrammeR #5302

jbukszar opened this issue Feb 19, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@jbukszar
Copy link

Description

A simple example works fine, however, when I add axisFormat %m/%d/%Y, it returns text instead of a diagram.

Steps to reproduce

This one works when using mermaid in DiagrammeR:
library(DiagrammeR)
mermaid("
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
First Task :a1, 2018-07-01, 30d
Another Task :after a1, 20d
section Another
Second Task :2018-07-12, 12d
Third Task : 24d
")

After adding line axisFormat %m/%d/%Y, I will get back only text instead of a diagram

mermaid("
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
axisFormat %m/%d/%Y
section Section
First Task :a1, 2018-07-01, 30d
Another Task :after a1, 20d
section Another
Second Task :2018-07-12, 12d
Third Task : 24d

")

Screenshots

No response

Code Sample

# This one works fine:
library(DiagrammeR)
mermaid("
gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    section Section
    First Task       :a1, 2018-07-01, 30d
    Another Task     :after a1, 20d
    section Another
    Second Task      :2018-07-12, 12d
    Third Task       : 24d
")

# After adding line axisFormat  %m/%d/%Y, I will get back only text instead of a diagram 
mermaid("
gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    axisFormat  %m/%d/%Y
    section Section
    First Task       :a1, 2018-07-01, 30d
    Another Task     :after a1, 20d
    section Another
    Second Task      :2018-07-12, 12d
    Third Task       : 24d

")

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@jbukszar jbukszar added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant