📅  最后修改于: 2022-03-11 15:03:18.227000             🧑  作者: Mango
const colorHash = new ColorHash()
const datasets = [{
label: 'Balance',
data: _.values(balances),
backgroundColor: _.keys(balances).map(name => colorHash.hex(name))
}]