Ws-timeline : timeline widget

Hi @akuz !

You could copy the code from the repository and host your own, modifying the timezone to your own. I walked through the steps on how to do this using Grist’s Invoice custom widget in our recent Creating Custom Invoices webinar. The steps would be the same, just downloading the files from the correct folder here: GitHub - rague/ws-timeline: Timeline plugin for Grist

This webinar link will start the webinar about 18min in, when I cover how to modify custom widget code: https://www.youtube.com/watch?v=IQTUj5CZDwU&t=1086s

It covers the steps on how to create your own repository using GitHub Pages, upload code and call your own custom widget in Grist.

Thanks,
Natalie

Hi Natalie,

Thank you for the advice, I will do that! Btw, I found another “timeline” widget in the below GitHub repository… Do you know if it’s the same?

Thank you

Hi @akuz !

I have fixed the two problems you encountered:

  • the widget now filters out incorrect values for start dates, end dates and durations.
  • the time zone is taken into account. I will not be surprised if it doesn’t works properly at the moment… So let me know !
1 Like

Thanks to @Varamil, I’ve added the option to use days durations.
https://rague.github.io/ws-timeline/start-duration-days

1 Like

Hi Raphael! The timezone now works! It automatically detects I am in London, and the editing is fine. It would still be great to be able to specify the time zone for the control. For example, if I am travelling to New York, it would show everything in New York time (I assume), which would not be good…

Separately, I am trying to filter the data within timeline by conditioning data selection on the other row selected in a different widget, on the top left: BRANCH), but it doesn’t seem to work at all. The link filter state is null. However, if I apply the same logic to other other widget, it does show the filtered data (on another page). I am not sure if the problem is with the timeline, or with the way I set up the link filter. But I am doing it exactly the same as on the other page, and it does filter there, but not on this page where I use timeline… Any ideas?

Hi @akuz ! The timezone used is the one defined in the parameters of the document (bottom left column).

Filtering data as you do should works… But it doesn’t. I don’t know why and I need to work on it. You can consider this a bug, sorry !

That’s perfect thank you! (About time zone.)

I hope the filtering works soon… I need it to complete functionality of what I am doing this for… Then it would be 100% perfect!

It seems to be a limitation of the way the link between views works. I’ve started a new thread on the subject here: setSelectedRows and cylic linking
I can’t think of a solution at the moment…

1 Like