最佳答案
您可以将点和点边框设置为相同的颜色。
datasets: [
{
label: 'Dataset 1',
data: Utils.numbers(NUMBER_CFG),
fill: false,
borderColor: Utils.CHART_COLORS.red,
backgroundColor: '#1F363D', # Here
borderWidth: 1,
pointRadius: 5,
pointBorderColor: '#1F363D' #Here
},
关于javascript - Chart.js 数据点颜色变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69520675/