Skip to content

Commit 439029f

Browse files
committed
Fixing chart colors.
1 parent d884f56 commit 439029f

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/statistics/components/ad-hoc-task-priorities/ad-hoc-task-priorities.component.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,45 +26,45 @@ export class AdHocTaskPrioritiesComponent implements OnChanges, OnDestroy {
2626
priorityNamesTranslated: string[] = [];
2727
xAxisTicks: any[] = [];
2828
colorSchemeLight = {
29-
domain: ['#ff0000', '#ffbb33', '#0000ff', '#1414fa']
29+
domain: ['#a71d2a', '#dc3545', '#0000ff', '#f8d7da']
3030
};
3131
customColorsLight = [
3232
{
3333
name: this.priorityNames[0],
34-
value: '#ff0000',
34+
value: '#a71d2a',
3535
},
3636
{
3737
name: this.priorityNames[1],
38-
value: '#ffbb33',
38+
value: '#dc3545',
3939
},
4040
{
4141
name: this.priorityNames[2],
42-
value: '#0000ff',
42+
value: '#f5a5a8',
4343
},
4444
{
4545
name: this.priorityNames[3],
46-
value: '#1414fa',
46+
value: '#f8d7da',
4747
},
4848
];
4949
colorSchemeDark = {
50-
domain: ['#ff0000', '#ffbb33', '#0000ff', '#1414fa']
50+
domain: ['#a71d2a', '#dc3545', '#f5a5a8', '#f8d7da']
5151
};
5252
customColorsDark = [
5353
{
5454
name: this.priorityNames[0],
55-
value: '#ff0000',
55+
value: '#a71d2a',
5656
},
5757
{
5858
name: this.priorityNames[1],
59-
value: '#ffbb33',
59+
value: '#dc3545',
6060
},
6161
{
6262
name: this.priorityNames[2],
63-
value: '#0000ff',
63+
value: '#f5a5a8',
6464
},
6565
{
6666
name: this.priorityNames[3],
67-
value: '#1414fa',
67+
value: '#f8d7da',
6868
},
6969
];
7070
isDarkTheme = true;

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/statistics/components/ad-hoc-task-workers/ad-hoc-task-workers.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export class AdHocTaskWorkersComponent implements OnChanges, OnDestroy {
2222
chartData: { name: string, value: number }[] = [];
2323
xAxisTicks: any[] = [];
2424
colorSchemeLight = {
25-
domain: ['#0000ff']
25+
domain: ['#a3d7b1']
2626
};
2727
customColorsLight = [];
2828
colorSchemeDark = {
29-
domain: ['#0000ff']
29+
domain: ['#a3d7b1']
3030
};
3131
customColorsDark = [];
3232
isDarkTheme = true;
@@ -91,8 +91,8 @@ export class AdHocTaskWorkersComponent implements OnChanges, OnDestroy {
9191
!changes.adHocTaskWorkers.isFirstChange() &&
9292
changes.adHocTaskWorkers.currentValue) {
9393
this.chartData = this.adHocTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: x.statValue}));
94-
this.customColorsDark = this.adHocTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#0000ff'}));
95-
this.customColorsLight = this.adHocTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#0000ff'}));
94+
this.customColorsDark = this.adHocTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#a3d7b1'}));
95+
this.customColorsLight = this.adHocTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#a3d7b1'}));
9696
this.getxAxisTicks();
9797
}
9898
}

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/statistics/components/planned-task-days/planned-task-days.component.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,53 @@ export class PlannedTaskDaysComponent implements OnChanges, OnDestroy {
2525
labels: string[] = ['Exceeded', 'Today', '1-7 days', '8-30 days', 'Over 30 days'];
2626
labelsTranslated: string[] = [];
2727
colorSchemeLight = {
28-
domain: ['#ff0000', '#ffbb33', '#0000ff', '#1414fa', '#3b3bff']
28+
domain: ['#dc3545', '#a3d7b1', '#a3d7b1', '#a3d7b1', '#a3d7b1']
2929
};
3030
customColorsLight = [
3131
{
3232
name: this.labels[0],
33-
value: '#ff0000',
33+
value: '#dc3545',
3434
},
3535
{
3636
name: this.labels[1],
37-
value: '#ffbb33',
37+
value: '#a3d7b1',
3838
},
3939
{
4040
name: this.labels[2],
41-
value: '#0000ff',
41+
value: '#a3d7b1',
4242
},
4343
{
4444
name: this.labels[3],
45-
value: '#1414fa',
45+
value: '#a3d7b1',
4646
},
4747
{
4848
name: this.labels[4],
49-
value: '#3b3bff',
49+
value: '#a3d7b1',
5050
},
5151
];
5252
colorSchemeDark = {
53-
domain: ['#ff0000', '#ffbb33', '#0000ff', '#1414fa', '#3b3bff']
53+
domain: ['#dc3545', '#a3d7b1', '#a3d7b1', '#a3d7b1', '#a3d7b1']
5454
};
5555
customColorsDark = [
5656
{
5757
name: this.labels[0],
58-
value: '#ff0000',
58+
value: '#dc3545',
5959
},
6060
{
6161
name: this.labels[1],
62-
value: '#ffbb33',
62+
value: '#a3d7b1',
6363
},
6464
{
6565
name: this.labels[2],
66-
value: '#0000ff',
66+
value: '#a3d7b1',
6767
},
6868
{
6969
name: this.labels[3],
70-
value: '#1414fa',
70+
value: '#a3d7b1',
7171
},
7272
{
7373
name: this.labels[4],
74-
value: '#3b3bff',
74+
value: '#a3d7b1',
7575
},
7676
];
7777
isDarkTheme = true;

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/statistics/components/planned-task-workers/planned-task-workers.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export class PlannedTaskWorkersComponent implements OnChanges, OnDestroy {
2222
chartData: { name: string, value: number }[] = [];
2323
xAxisTicks: any[] = [];
2424
colorSchemeLight = {
25-
domain: ['#0000ff']
25+
domain: ['#a3d7b1']
2626
};
2727
customColorsLight = [];
2828
colorSchemeDark = {
29-
domain: ['#0000ff']
29+
domain: ['#a3d7b1']
3030
};
3131
customColorsDark = [];
3232
isDarkTheme = true;
@@ -91,8 +91,8 @@ export class PlannedTaskWorkersComponent implements OnChanges, OnDestroy {
9191
!changes.plannedTaskWorkers.isFirstChange() &&
9292
changes.plannedTaskWorkers.currentValue) {
9393
this.chartData = this.plannedTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: x.statValue}));
94-
this.customColorsDark = this.plannedTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#0000ff'}));
95-
this.customColorsLight = this.plannedTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#0000ff'}));
94+
this.customColorsDark = this.plannedTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#a3d7b1'}));
95+
this.customColorsLight = this.plannedTaskWorkers.taskWorkers.map(x => ({name: x.workerName, value: '#a3d7b1'}));
9696
this.getxAxisTicks();
9797
}
9898
}

0 commit comments

Comments
 (0)