Help for vis.js Timeline (emkay plugin, reloaded)

274 views
Skip to first unread message

Sylvain Naudin

unread,
Jun 24, 2015, 12:41:14 PM6/24/15
to tiddl...@googlegroups.com
Hello,

I have tested the vis.js Timeline plugin (emkay plugin, reloaded) : http://kixam.github.io/TW5-visjsTimeline/
(I've found discussion on Google Groups about Emkay plugin but seem to be not compatible with latest version of TiddlyWiki).
If I play online with the plugin (http://kixam.github.io/TW5-visjsTimeline/), it works (even I've found a little complicate to clearly understand howto create correctly tiddler and show a timeline).

But if I import the 3 plugins on an empty TW file, I've got JavaScript error like "Error with vis.js Timeline : Not a startDate () on MySubStoryList.created".

Do you have some advices or other example to help me ?


Thanks,
Sylvain

Felix Küppers

unread,
Jul 1, 2015, 6:55:34 AM7/1/15
to tiddl...@googlegroups.com
Hi Sylvain


But if I import the 3 plugins on an empty TW file, I've got JavaScript error like "Error with vis.js Timeline : Not a startDate () on MySubStoryList.created".

kixam

unread,
Jul 1, 2015, 9:50:39 AM7/1/15
to tiddl...@googlegroups.com
Hi Sylvain,


On Wednesday, June 24, 2015 at 6:41:14 PM UTC+2, Sylvain Naudin wrote:
I have tested the vis.js Timeline plugin (emkay plugin, reloaded) : http://kixam.github.io/TW5-visjsTimeline/


Thank you for testing!

 
I've found a little complicate to clearly understand howto create correctly tiddler and show a timeline.
 

I know documentation needs to be improved. Can you give me some advice on what is missing, or what should be detailed?

 
But if I import the 3 plugins on an empty TW file, I've got JavaScript error like "Error with vis.js Timeline : Not a startDate () on MySubStoryList.created".

Do you have some advices or other example to help me ?

On the issue #9 discussion on github, we are discussing a way to change the user experience, should a problem be detected by the plugin.

This is actually what you experienced:
  • I guess you created a blank tiddler, and typed <$visjstimeline/> there
  •  since you did not pass any value to any attribute, the plugin uses defaults. In particular, for the two relevant attributes here:
  1. filter has value [!is[system]], which means all tiddlers that are not system tiddlers are selected for insertion into the timeline
  2. startDateField has value created, which means all the selected tiddlers must have a field called "created", and the contents of this field will be used as start date on the timeline
  • unfortunately, in your case, the plugin found your tiddler "MySubStoryList", but when it wanted to insert it into the timeline, found that it did not have a "created" field, or that its contents where not using the specified format
  • so, the plugin shows a blue popup with this error message, to tell you what went wrong
  • then, when you discard the popup, the timeline is shown, only not with these tiddlers that generated errors
  • but, by reading the blue popup, you know what to do to have them shown: in your case, the "created" field is automatically created and set appropriately when you close the tiddler's draft and save your tiddlywiki. If you do that, the timeline should refresh and show your tiddler !
Please tell me if something is not clear

Paul Boughner

unread,
Jul 22, 2020, 1:26:40 PM7/22/20
to TiddlyWiki
So does the format read in the start/end dates according to the template or does it format the output for the timeline? I can't seem to get this to work with 

<$visjstimeline filter=[tag[event]]  startDateField=event_start endDateField=event_end format="date" template="YYYY 0MM 0DD 0hh 0mm" navpad />

Paul Boughner

unread,
Jul 22, 2020, 2:49:55 PM7/22/20
to TiddlyWiki
Forget that, it works. The red triangle seems to be saying there are tagged tiddlers that can't be rendered. The real problem is that the events on the timeline are off by 4 hours from the start/end time. I didn't see any UTC/Local offsets in any config file though.


On Wednesday, June 24, 2015 at 12:41:14 PM UTC-4, Sylvain Naudin wrote:
Reply all
Reply to author
Forward
0 new messages