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

In EHC study: mermaid gantt chart wont display #446

Closed
hheyenn opened this issue Mar 24, 2020 · 6 comments
Closed

In EHC study: mermaid gantt chart wont display #446

hheyenn opened this issue Mar 24, 2020 · 6 comments

Comments

@hheyenn
Copy link

hheyenn commented Mar 24, 2020

Hi,
have been testing my Event History Calendar Survey a month ago and again now. Using the same xls files, js and css settings, the gantt chart showed in test runs in February, but not now. Instead the output is as following:

gantt
title Overview of residences
dateFormat YYYY-MM-DD
section Residences
Rome : done , a1 , 2010-01-01 , 2015-01-01
Paris : done , a2 , 2015-02-01 , 2017-02-01
Berlin : active , a3 , 2017-03-01 , 2020-03-24

Here the corresponding r code in my spreadsheet:
{r} gannt_event_row <- function (i, data, col_title, col_datefrom, col_dateto, col_current) {     empty <- ''     if(!(paste0(col_title, i) %in% colnames(data))) {         return (empty)        }     title <- last(data[paste0(col_title, i)])     if (is.na(title) \|\| title == '') {         return (empty)     }     is_current <- last(data[paste0(col_current, i)]) == 1     datefrom <- last(data[paste0(col_datefrom, i)])       dateto <- ifelse(is_current, format(Sys.Date(), "%Y-%m-%d"), last(data[paste0(col_dateto, i)]))     tag <- ifelse(is_current, "active", "done");     label <- paste0("a", i)     paste(title, ":", tag, ",", label, ",", datefrom, ",", dateto,  "     ", sep = " ") } residences <- NULL; for (x in 1:last(My_EHC_survey$count_SR)) {     residences <- c(residences, gannt_event_row(x, My_EHC_survey, 'residence_R', 'datefrom_R', 'dateto_R', 'current_residence_R')) }
gantt     title Overview of residences     dateFormat  YYYY-MM-DD     section Residences    r paste(residences, collapse="\n")

Please let me know if some changes in form r may be causing this. Or what the corresponding human error could be on my side.
Thank you!

@cyriltata
Copy link
Collaborator

cyriltata commented Mar 24, 2020 via email

@hheyenn
Copy link
Author

hheyenn commented Mar 27, 2020

Works in the live study now, thanks! Gantt chart is showing, though still not in test mode.

@hheyenn
Copy link
Author

hheyenn commented Aug 26, 2020

The issue is back.

@hheyenn
Copy link
Author

hheyenn commented Aug 26, 2020

I am having the same problem again. The gantt wont show testing the original my ehc study by Wiezorek et al. here: https://ehcrun.formr.org/

Using Firefox and JS up to date version.

Can you please help fix the problem and let me know what the cause it so I can adapt it in my own ehc studies?

Thank you,

Hannah

@cyriltata
Copy link
Collaborator

cyriltata commented Aug 26, 2020 via email

@hheyenn
Copy link
Author

hheyenn commented Jul 21, 2023

I am having the gantt problem again with my new study. Could you make the mermaid available again?
In addition the other survey in the run stopped turning past page one. Although it did in testing in another run earlier.
https://mobile-lives-survey2023.formr.org/?code=Y5zuPFhSep9GFa_hxGfs8cKSiiMod63gZlUZiXB3bnuSB3WZuhxqTS4RbWUENTN0
Hope you can help!

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants