Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The 1 year domain, divided by days, and the 12 months domain, divided by day are the same. Is there a difference ?
Yes. In most of the case, the 12 months domain, divided by days is more practical, because it groups the days by month, whereas the 1 year domain just display a bloc a days.
Also, multiple domains can be split, and can go to the next line if the window width is not large enough.
The domain of one year can not be split, and will overflow.
Can I split 1 year into hours ?
Yes you can, but it's not recommended. Try to keep the subdomain one step below the domain, maximum 3 steps.
- Hour divided by weeks/day
- Hour divided by hours is the max, using minutes will slow down the entire page and hog a lot of memory.
The steps are : min < hour < day < week < month < year
You can use the min to month as subdomain, and hour to year as domain.
What if I want the calendar to start at the current date?
Just don't pass
start when you init the calendar.
Can I have more than 4 stops in the scale ?
Yes, you can put as much as you like. Don't forget to edit the css to add new classes. Default css just contains classes for 5 stops, q1 to q5. If you have more than 4 stops, add more classes starting by q6.
Can I have negative stops in the scale ?
Yes you can. Don't forget to modify the scale.
Can the calendar support double values ?
Yes, it should. Don't forget to modify the scale.
I would like something to happens when I click on a cell
Pass your callback to
onClick, when you init the calendar.