Darakah / obsidian-timelines

Create a timeline view of all notes with the specified combination of tags
MIT License
350 stars 34 forks source link

Vertical timeline works, but not the horizontal #25

Open AuthorSP opened 2 years ago

AuthorSP commented 2 years ago

Hello, I am very excited for this plugin, but I can't make it work. I need to show a timeline with overlapping events, so I need to use the horizontal option. I was able to get the vertical option working, but I don't understand the video instructions for the horizontal. I copied the code snippet, but I can't make it work using the same notes I used for the vertical. For testing, I have 4 notes with the tags 'timeline' and 'V1'. I need the timeline to start at the year 370 and end at the year 500. Most of the notes are set up with a date of a year and no month, etc. (380-00-00-00). Here is the code I have:

This is the Vortigern timeline Vertical:

timeline;V1

Let's see how this goes.

Horizontal:

tags= timeline;V1
startDate=0370
endDate=0500
divHeight=300
minDate=10000
maxDate=10000

Ok check now.

This is what it shows: image

mummey commented 2 years ago

It appears from my experience so far that only the “test” tag works for horizontal timelines.

AuthorSP commented 2 years ago

I wonder if he is still working on it...

teateatea commented 2 years ago

I believe the issue here is with your dates, i.e. 380-00-00-00. I'm playing with this too lol.

The horizontal timeline really cares about the months and days for some reason, and will not accept 00. I've gotten around this by using 01 by default, so you could try 380-01-01-00.


To Darakah, I've just picked this up and it's amazing!

Would you make the horizontal timeline assume that 00-00 for months and days just means 01 for the purposes of horizontal rendering? I'm using both the horizontal and vertical timelines, and while I don't mind "1234-01-01" showing up on the vertical, I really only meant for it to be a "1234" kind of event without more specificity than that lol.