walterra / d3-milestones

A d3 based timeline visualization.
https://walterra.github.io/d3-milestones
Other
146 stars 27 forks source link

Use two categories to distribute labels to top/bottom. #2

Open walterra opened 6 years ago

walterra commented 6 years ago

At the moment, categories can be used to split the data into multiple timelines. The label distribution on each timeline can be set to bottom/top/both.

It would be nice to have an option which allows you to distribute the labels on one timeline to bottom/top based on two categories.

smartsl commented 3 years ago

Looking forward to this feature.

And how to set the label distribution on each timeline individually ? I'm not seeing this can be done for now.

walterra commented 3 years ago

This will be a bit of work to implement this dynamically.

In the meantime, you could work around this by creating multiple instances, I created an example in examples/lotr-top-bottom.html

image

walterra commented 2 years ago

Moved the example to the storybook rendering: https://walterra.github.io/d3-milestones/?path=/story/d3-milestones--lord-of-the-rings