Basic

Basic timeline from the first day of 2017 to the first day of 2018 with some data events.

var conf = {
  dateRange: [
    new Date('01 Jan 2017'),
    new Date('01 Jan 2018'),
  ],
  data: [
    {date: new Date('31 Jan 2017')},
    {date: new Date('10 May 2017')},
    {date: new Date('11 May 2017')},
    {date: new Date('10 Jun 2017')},
    {date: new Date('30 Jun 2017')},
    {date: new Date('24 Dec 2017')},
  ]
};

var t = new Zeitline.Timeline(conf);
t.render();