Merge pull request #10238 from scmmishra/chart-widget-color
fix: default light blue color for charts
This commit is contained in:
commit
d62706620f
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ export default class ChartWidget extends Widget {
|
|||
colors.push(field.color);
|
||||
});
|
||||
} else if (["Line", "Bar"].includes(this.chart_doc.type)) {
|
||||
colors = [this.chart_doc.color || "light-blue"];
|
||||
colors = [this.chart_doc.color || []];
|
||||
}
|
||||
|
||||
if (!this.data || !this.data.labels.length || !Object.keys(this.data).length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue