Hi Martin, As already mentioned by me, it is nice and easy to use.
Playing around with it I used: <$visjstimeline filter="[tag[test]]" startDateField="start" endDateField="end" format="YYYYMMDD"/> Then I came across the situation with a timeline starting in the past and still going on (current date). When I did not fill in the endDateField, I got an error: Not a endDate () on ... Looking at the documentation of moment.js I found: To get the current date and time, just call moment() with no parameters. So it looks like it is possible; be aware I am not a programmer ;-) Is there a trick to make the end = current date? Cheers, Ton On Friday, March 14, 2014 3:08:51 PM UTC+1, emkay wrote: > > Hi Jonathan, > > Glad you like the plugin. > > The plugin uses the > moment.js<http://momentjs.com/docs/#/parsing/string-format/> library > for date parsing. The formats it supports are listed under the "string + > format" section. The required format can be passed to the plugin using the > 'format' attribute. > > Looking at the documentation it doesn't seem that moment js handles +/- > nor a BCE/CE indicator. However, I have had a look at the moment.js test > suite and have come across examples using negative years. There examples > include: > > 1. "-270000-01-01" formatting it with "YYYYY-MM-DD" to get BCE 270,001. > 2. "-1000-01-01" formatting it with "YYYYY-MM-DD" to get BCE 1,001 > > I haven't tried these myself (I only need to the timeline to handle the > last couple of hundred years), but it may be worth having a go to see if > you can get them to work. > > Good luck, > > Martin > > On Friday, 14 March 2014 13:23:58 UTC, Jonathan Emmert wrote: >> >> I love this plugin - thank you. >> >> Is there a way to work with dates that are BCE? I tried using negative >> numbers for "start" and "end" but I get an error: "visjstimeline: Not a >> startDate (-0605) on Nebuchadnezzar II.start" >> >> I get the same thing if I use positive numbers. >> >> Thanks for the work and the help! >> >> Jonathan >> >> >> >> On Thursday, March 13, 2014 10:05:44 AM UTC-4, emkay wrote: >>> >>> >>> On Wednesday, 12 March 2014 22:15:10 UTC, Jeremy Ruston wrote: >>>> >>>> Hi Martin >>>> >>>> Congratulations on a very nicely executed plugin, with exemplary >>>> presentation. I'm sure it will be justly popular. I'll add a link on >>>> tiddlywiki.com - how would you like to be credited? >>>> >>> >>> Thanks to you (and everyone else) for the positive feedback. All the >>> real hard work has been done by you and the vis.js guys, all I did was to >>> pull the two together. You are welcome to credit me as Martin Kendall on >>> tiddlywiki.com. >>> >>> >>> >>>> I had a quick scan of the code: >>>> >>>> * Your parseWidgetAttributes() method is interesting. I had originally >>>> planned to make the attribute handling be more declaratory, and would >>>> still >>>> like to do so >>>> >>> >>> Yes, I like the idea of declarative options, though my code is a long >>> way from being useful. I will keep evolving it and maybe it will help >>> formulate some ideas. >>> >>> >>>> * I wondered if you'd considered merging the three ways of specifying >>>> the tiddler list into one: "list='title'" is equivalent to a filter >>>> "[list[title]]", except for the requirement to quote tiddler titles. >>>> >>> >>> You really made my day with this idea - I love simplifying things down >>> to a smaller set of moving parts (less to code, less to maintain and less >>> to go wrong). I've released a new version of the plugin that merges the >>> three attributes, consolidating on filter. This lead me to digging deeper >>> into filters, but my issues there are best discussed on TiddyWikiDev. >>> >>> >>>> * The demo tiddlers are missing the vertical bar at the start of the >>>> table at the top >>>> >>> >>> I'd totally forgotten I was even aiming to show a table - nice spot! >>> >>> >>>> >>>> Anyhow, I'm very happy to see this, and wish you luck for future >>>> plugins! (Mindmapping is a perennial request...) >>>> >>>> Best wishes >>>> >>>> Jeremy >>>> >>>> >>>> >>>> >>>> On Wed, Mar 12, 2014 at 8:12 PM, emkay <[email protected]>wrote: >>>> >>>>> Hello, >>>>> >>>>> I've written a TW5 plugin that uses vis.js <http://visjs.org/> to >>>>> show a graphical timeline view of a wiki's tiddlers. >>>>> >>>>> I developed it for my own use, but I thought others may find it >>>>> useful, so I have made it available on github. >>>>> >>>>> A demonstration of the widget and it's help tiddler can be seen at: >>>>> >>>>> http://emkayonline.github.io/tw5visjs >>>>> >>>>> You can install it by dragging it from the demonstration's >>>>> ControlPanel into your wiki. It requires TW5 version >= 5.0.8-beta. >>>>> >>>>> Full documentation, source and tests can be found at: >>>>> >>>>> https://github.com/emkayonline/tw5visjs >>>>> >>>>> >>>>> All the best, >>>>> >>>>> Martin >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "TiddlyWiki" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Jeremy Ruston >>>> mailto:[email protected] >>>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

