Highcharts 填充气泡未正确缩放
Highcharts Packed Bubble Not Scaling Properly
我这里有我的问题的工作版本:
https://jsfiddle.net/upcheezy/45ps3j9t/4/
{
"name": "Normal",
"data": [
{
"name": "Additional Info",
"value": 286
},
{
"name": "Add Service Area",
"value": 117
},
{
"name": "Cancel",
"value": 13168
},
{
"name": "Multiple",
"value": 600
},
{
"name": "New",
"value": 721391
},
{
"name": "No Show",
"value": 32872
},
{
"name": "Remark",
"value": 38699
},
{
"name": "Resend",
"value": 14160
},
{
"name": "Update",
"value": 224260
}
]
}
由于气泡的比例不能准确反映数据,因此这张图表无法直观地检验出来。例如,似乎所有“正常”类别数据值的大小都完全相同,但在数据数组中时,这些值甚至不相近!有人可以告诉我这是否是 HighCharts 的正常行为?
这是调整气泡大小的预期行为,请使用 maxSize,
minSize调整中。
Packed Bubble charts with a dataset of either many small or large
values need some tweaking of the options to control the size of the
bubbles displayed. The minimum and maximum size of bubbles is
configured by two parameters: minSize and maxSize Bubbles will
automatically size between the minSize and maxSize to reflect the
volume of each bubble. Can be either pixels (when no unit is given),
or a percentage of the smallest one of the plot width and height.
文章:https://www.highcharts.com/docs/chart-and-series-types/packed-bubble#bubble-sizes
我这里有我的问题的工作版本:
https://jsfiddle.net/upcheezy/45ps3j9t/4/
{
"name": "Normal",
"data": [
{
"name": "Additional Info",
"value": 286
},
{
"name": "Add Service Area",
"value": 117
},
{
"name": "Cancel",
"value": 13168
},
{
"name": "Multiple",
"value": 600
},
{
"name": "New",
"value": 721391
},
{
"name": "No Show",
"value": 32872
},
{
"name": "Remark",
"value": 38699
},
{
"name": "Resend",
"value": 14160
},
{
"name": "Update",
"value": 224260
}
]
}
由于气泡的比例不能准确反映数据,因此这张图表无法直观地检验出来。例如,似乎所有“正常”类别数据值的大小都完全相同,但在数据数组中时,这些值甚至不相近!有人可以告诉我这是否是 HighCharts 的正常行为?
这是调整气泡大小的预期行为,请使用 maxSize, minSize调整中。
Packed Bubble charts with a dataset of either many small or large values need some tweaking of the options to control the size of the bubbles displayed. The minimum and maximum size of bubbles is configured by two parameters: minSize and maxSize Bubbles will automatically size between the minSize and maxSize to reflect the volume of each bubble. Can be either pixels (when no unit is given), or a percentage of the smallest one of the plot width and height.
文章:https://www.highcharts.com/docs/chart-and-series-types/packed-bubble#bubble-sizes