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
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top