is there a way to have quarter of a year intervals in the simile timeline javascript widget?

StackOverflow https://stackoverflow.com/questions/2143703

  •  23-09-2019
  •  | 
  •  

Question

When using the javascript timeline widget simile, i see there is hour, day, week, month, year intervals. Is there anyway to have an interval be a quarter of a year?

i am trying to group events into Quarter1, Q2, Q3, Q4 in 2010.

Was it helpful?

Solution

The Simile wiki has some notes on how to add new intervals to Timeline.DateTime by editing date-time.js and labelers.js. This would be one way to add support for a quarter of a year interval.

Looking at the source code repository for Simile timeline, there is also a planning extension to timeline that includes support for Timeline.PlanningUnit.QUARTER, which may already do what you want

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top