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

Timeline does not use a standard time distribution #77

Open
reyemtm opened this issue Mar 25, 2024 · 2 comments
Open

Timeline does not use a standard time distribution #77

reyemtm opened this issue Mar 25, 2024 · 2 comments

Comments

@reyemtm
Copy link

reyemtm commented Mar 25, 2024

Awesome Project! I have used this project in a recent update to my resume - https://www.getbounds.com/resume-timeline. One thing I noticed is that I had to adjust the timestamps on the bottom timeline to match up with the top timeline. I did not look into the code to see why this was - I just wanted to get something published. Maybe this is by design and it is not supposed to have standard time placement - meaning equal spaces between years, not sure.

@walterra
Copy link
Owner

Thanks for the nice feedback!

I guess this is the case in your example because it's two separately initialized timelines, in that case they are not automatically aligned, they don't know of each other. The "category" feature allows to automatically split timelines, then they should be aligned. Here's some examples:

https://walterra.github.io/d3-milestones/?path=/story/d3-milestones--lord-of-the-rings
https://walterra.github.io/d3-milestones/?path=/story/d3-milestones--os-category-labels

Maybe that feature doesn't work with your variant that has just text in one timelines and images in the other. Let me know if you have more questions!

@reyemtm
Copy link
Author

reyemtm commented Mar 25, 2024 via email

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

No branches or pull requests

2 participants