NVD3 Scatter Chart Circle Radius
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was wondering how I can set minimum and maximum radii of the circles in an NVD3 scatter chart. NVD3 Scatter: http://nvd3.org/ghpages/scatter.html 回答1: Call .sizeRange([minArea, maxArea]) on your chart object. Note that "size" is proportional to area, not radius, so you need to use the square of the maximum/minimum radius (adjusted by pi/2 if you want to be precise). 回答2: As of 1.7.1, call .pointRange([minArea,maxArea]) . 回答3: nv.addGraph(function() { var chart = nv.models.scatterChart() .showDistX(true) .sizeRange([1000, 100]) /*****Chart