Bubble chart label placement algorithm? (preferably in JavaScript)

后端 未结 9 836
时光取名叫无心
时光取名叫无心 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:47

    How about

    label.substring(0, Math.sqrt(bubbleValueOrRadius))

    I found this in one of protovis.js examples.

提交回复
热议问题