walterra / d3-milestones

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

Customize bullet colors or text #11

Open bowdidge opened 4 years ago

bowdidge commented 4 years ago

In some timelines, some events may be more important than others. For example, in a timeline showing events in a distributed test, I'd like to highlight the event that triggered the shutdown of the test, and highlight places where obviously incorrect behavior happened.

One way to highlight these would be to customize either the color of bullets (larger, smaller, red background, green background). Another would be to customize the text, using larger text or different colors to distinguish importance.

If there's workarounds or hacks that would allow customization, I'd love suggestions.

walterra commented 2 years ago

v1.4.0 now comes with support for custom styles for text elements. Here's a storybook example: https://walterra.github.io/d3-milestones/?path=/story/d3-milestones--styles