我将ChartJs用于“气泡图”。如果气泡的半径值r=1
小于我的预期,则无法正确看到它。是否可以调整半径宽度大小或将其设置为默认值?
var options = {
type: 'bubble',
data: {
datasets: [
{
label: 'John',
data: [
{
x: 3,
y: 7,
r: 1 //-------------if r = 1 not visible in graphs screen properly
}
],
backgroundColor:"#ff6384",
hoverBackgroundColor: "#ff6384"
},
backgroundColor:"#ff6384",
hoverBackgroundColor: "#ff6384"
},
{
label: 'John',
data: [
{
x: 2,
y: 1,
r: 10
}
],
backgroundColor:"#ff6384",
hoverBackgroundColor: "#ff6384"
},
backgroundColor:"#ff6384",
hoverBackgroundColor: "#ff6384"
}
]
}
}