Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

[Timeline] Year quarters #3717

Merged
merged 7 commits into from
Jan 27, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented Dec 10, 2017

Hello again :) I think the title is pretty much self explanatory: this PR adds year quarters (Q1 2018, Q2 2018...) to the timeline axis.

image

My only concern is that not everyone is interested in having quarters displayed (since it's more of a 'business' thing) so I don't know, maybe there should be some sort of flag in the options, disabled by default, that enables quarters in the axis.

Let me know if you like it!

Copy link
Contributor

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really great!
I really do like it. But as you mentioned, it is a business thing.
I think a flag for quarters is needed or at least treated like the weeks. see Docs:
Note: the 'week' scale is not included in the automatic zoom levels as its scale is not a direct logical successor of 'days' nor a logical predecessor of 'months'
Quarters should be treated the same

@ghost
Copy link
Author

ghost commented Jan 26, 2018

@yotamberk thanks for the tip, now quarters are hidden by default. In order to show them, you need to add something like this in the timeline options: format: { minorLabels: { quarter: '[Q]Q' } } which is totally fine with me.

@yotamberk yotamberk merged commit 716f361 into almende:develop Jan 27, 2018
mojoaxel pushed a commit to visjs/vis_original that referenced this pull request Jun 9, 2019
* timeline: add 'quarter' support

* add unit test

* update docs

* misc

* 'quarters' scale hidden by default
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant