Follow

Is there a way to have Timeline JS show just month and day and not year?

I'm trying to create a timeline where the month/day are the dominate feature as opposed to the year.  It's for a March to May calendar.  The first date is the title so it's not an issue. The 2nd date is March 3rd 1847 and the 3rd is March 7th 1799.  I could do the number but then would run into the same issue with April and May.  Here's the URL: http://qa.theinstitute.ieee.org/static/calendar-march-may-2014

Here's the URL for the spreadsheet: https://docs.google.com/spreadsheet/ccc?key=0AkcHWm18trN9dFNLZG9jQlpCSVpJQl9UdlJFemNRelE&usp=sharing

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

7 Comments

  • 0
    Avatar
    Joe Germuska

    Sorry, but there's no way to have a Timeline where the dates don't go in order. You can make a custom language file that has a date format which doesn't show years if you wanted to: the "24 hour time" option is an example of this.

  • 0
    Avatar
    Mike Spector

    Thank for responding, Joe. Is there an example I can see of the custom language file?

  • 0
    Avatar
    Joe Germuska

    Here's all the files:

    https://github.com/NUKnightLab/TimelineJS/tree/master/source/js/Core/Language/locale

    This is the alternate English one:

    https://github.com/NUKnightLab/TimelineJS/blob/master/source/js/Core/Language/locale/en-24hr.js

    To use an alternate language file you'd have to host the Timeline JS/CSS files on your own server.

  • 0
    Avatar
    Mike Spector

    Thanks again Joe.  One more question.  I was going to make the dates plain text and do 3.01" or 3.3 for the dates but only the whole number is showing on the timeline.  Is there a way to show the decimal? So instead of 3 it'll show 3.01?

  • 0
    Avatar
    Joe Germuska

    I'm not following this question. Can you show an example of what you're describing?

  • 0
    Avatar
    Zoya Rasul

    Hi,

    I am trying to create a timeline for one day, with different hours of the day as the transition points. How can I do it? 

     

  • 0
    Avatar
    Joe Germuska

    TimelineJS will automatically determine the best scale for the labels on the timeline. If all of your events are on the same day then the timeline will be labeled with hours, etc.

Please sign in to leave a comment.
Powered by Zendesk