是否可以为每个系列添加不同的颜色。使用customColors?为
customColors() {
result = JSON.parse('[{"name":"Used","value":"#e8c728"},{"name":"Used","value":"#FF0000"}]');
return result;
}
样本图: https://stackblitz.com/edit/swimlane-grouped-vertical-bar-chart?embed=1&file=app/app.component.ts https://stackblitz.com/edit/swimlane-grouped-vertical-bar-chart-cn1o4k
data: [
{
"name": "Lineage Transformations",
"series": [
{
"name": "Limit",
"value": 0
},
{
"name": "Used",
"value": 0
}
]
},
{
"name": "Data sources",
"series": [
{
"name": "Limit",
"value": 10
},
{
"name": "Used",
"value": 0
}
]
}
]