Bubble chart label placement algorithm? (preferably in JavaScript)

后端 未结 9 767
时光取名叫无心
时光取名叫无心 2021-01-30 17:15

I\'d like to automatically place 100-200 bubble labels so that the following requirements are met:

  • Labels should not overlap
  • Labels should preferably not
9条回答
  •  独厮守ぢ
    2021-01-30 17:43

    I think if you are using D3 inside your tools, you can use "force-based" label placement algorithm. The solution originally belongs to Max Planck Research Networks but there is already a ready-made Javascript example, here: Force-based label placement in D3

提交回复
热议问题