Draw simple timeline with D3

后端 未结 3 1911
猫巷女王i
猫巷女王i 2020-12-24 06:37

This is what I\'m trying to accomplish:

\"Timeline\"

In this example, I have a starting date (1º Jun 20

相关标签:
3条回答
  • 2020-12-24 07:22

    You should be able to accomplish this with a time scale and an axis

    Scott Murray has a really good set of tutorials that culminates in one for axes

    Just think of your time line as a 1-dimensional scatterplot with a time scale.

    0 讨论(0)
  • 2020-12-24 07:31

    I recently had to do something similar. I ended up writing a d3 plugin that could handle this case among a few others. https://github.com/jiahuang/d3-timeline

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    I'm pretty new to D3 as well, but I hope it's useful.

    0 讨论(0)
  • 2020-12-24 07:33

    I am going to develop similar visualization and found on Github timeknots component based on d3.js.

    0 讨论(0)
提交回复
热议问题