Add colors for Bar and Donut Charts

This commit is contained in:
Mel O'Hagan 2022-08-11 17:45:46 +01:00
parent 352d236f2e
commit 255434a714
2 changed files with 83 additions and 3 deletions

View File

@ -1493,6 +1493,46 @@
"value": "Custom" "value": "Custom"
} }
}, },
{
"type": "color",
"label": "C2",
"key": "c2",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C3",
"key": "c3",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C4",
"key": "c4",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C5",
"key": "c5",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{ {
"type": "boolean", "type": "boolean",
"label": "Stacked", "label": "Stacked",
@ -1963,8 +2003,48 @@
}, },
{ {
"type": "color", "type": "color",
"label": "Color", "label": "C1",
"key": "color", "key": "c1",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C2",
"key": "c2",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C3",
"key": "c3",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C4",
"key": "c4",
"barSeparator": false,
"dependsOn": {
"setting": "palette",
"value": "Custom"
}
},
{
"type": "color",
"label": "C5",
"key": "c5",
"barSeparator": false, "barSeparator": false,
"dependsOn": { "dependsOn": {
"setting": "palette", "setting": "palette",

View File

@ -35,7 +35,7 @@
yAxisUnits, yAxisUnits,
palette, palette,
horizontal, horizontal,
c1 ? [c1] : null, c1 && c2 && c3 && c4 && c5 ? [c1, c2, c3, c4, c5] : null,
customColor customColor
) )