Add labels to D3 Chord diagram

后端 未结 2 1735
逝去的感伤
逝去的感伤 2021-01-31 21:34

I\'m a rookie programmer, so this one will probably be an easy one for most of you. What lines of code do I need for labels and/or mouse-over text for this Chord diagram?

<
2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 22:10

    Add text elements to display labels. Alternatively, use textPath elements if you want to display text along a path. Two examples of labeled chord diagrams:

    • http://mbostock.github.com/d3/talk/20111018/chord.html
    • http://bl.ocks.org/1308257

提交回复
热议问题