我有一个条形图,我使用Labels插件在条形上方显示一个值:“ A1”,“ B6”,“ C15”,“ DK0”,“ DK1”,“ DK2” 我无法显示这些值。
options: {
plugins: {
labels: {
datasets: [{
data: ['A1','B6','C15','DK0','DK1','DK2']
}],
}
},
预期:'A1','B6','C15','DK0','DK1','DK2'
实际结果:“ 100%”
答案 0 :(得分:0)
您可以尝试这种方式吗?
标签:[',',',', 数据集:[{数据:[',',',']] backgroundColor:[',',',']] borderColor:[',',',']}]