Placing labels at the center of nodes in d3.js

后端 未结 3 797
北荒
北荒 2020-12-04 23:08

I am starting with d3.js, and am trying to create a row of nodes each of which contains a centered number label.

I am able to produce the desired result visually, bu

3条回答
  •  心在旅途
    2020-12-05 00:02

    This page describes what's going on under the svg hood when it comes to text elements. Understanding the underlying machinery and data structures helped me get a better handle on how I had to modify my code to get it working.

提交回复
热议问题