Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds option to only tick at block start #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmbeach
Copy link

@jmbeach jmbeach commented Sep 4, 2018

Adds an option to solve the feature request in issue #102.

Use the new option atBlockStart: true as part of the tickFormat method.

Ex:

d3.timeline().tickFormat({ atBlockStart: true })

Also adds hideOverlapTicks options (which only works with atBlockStart).

hideOverlapTicks is an amount of ticks to not allow two timestamps to be drawn next to eachother and prevents two timestamps from overlapping.

Ex 1: atBlockStart: true:

image

Ex 2: atBlockStart: true, hideOperlapTicks 2700000 (45 min)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant