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
Comments
Can you check if your JavaScript is upto date? Maybe you can also send a
link to your study.
…On Tue, Mar 24, 2020, 15:28 hheyenn ***@***.***> wrote:
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!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#446>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARL5ZZAE2P27C3DUXJIQYDRJC7R3ANCNFSM4LSWAGKQ>
.
|
Works in the live study now, thanks! Gantt chart is showing, though still not in test mode. |
The issue is back. |
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 |
Hello Hannah
The mermaid.js is now available.
best
Cyril
…On Wed, Aug 26, 2020 at 11:56 AM hheyenn ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#446 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARL5Z3LBX7TN7XGBDOSZADSCTL6NANCNFSM4LSWAGKQ>
.
|
I am having the gantt problem again with my new study. Could you make the mermaid available again? Thank you, |
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:
gantt title Overview of residences dateFormat YYYY-MM-DD section Residences
{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')) }
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!
The text was updated successfully, but these errors were encountered: