Skip to content

Commit 8e41c0d

Browse files
committed
fix(widgets): add missing pointBackgroundColor
1 parent e4036c0 commit 8e41c0d

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

src/app/views/widgets/widgets-brand/widgets-brand.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export class WidgetsBrandComponent implements AfterContentInit {
4949
colors = {
5050
backgroundColor: 'rgba(255,255,255,.1)',
5151
borderColor: 'rgba(255,255,255,.55)',
52-
pointHoverBackgroundColor: '#fff'
52+
pointHoverBackgroundColor: '#fff',
53+
pointBackgroundColor: 'rgba(255,255,255,.55)'
5354
};
5455
brandData = [
5556
{

src/app/views/widgets/widgets-e/widgets-e.component.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export class WidgetsEComponent implements AfterContentInit {
8282
barThickness: 'flex',
8383
borderColor: 'transparent',
8484
backgroundColor: 'transparent',
85+
pointBackgroundColor: 'transparent',
86+
pointHoverBorderColor: 'transparent',
8587
borderWidth: 1
8688
}
8789
];
@@ -117,20 +119,11 @@ export class WidgetsEComponent implements AfterContentInit {
117119
}
118120
}
119121

120-
getDataset({
121-
backgroundColor = 'transparent',
122-
borderColor = 'transparent',
123-
borderWidth = 1
124-
}) {
122+
getDataset({ backgroundColor = 'transparent', borderColor = 'transparent', borderWidth = 1 }) {
125123
const dataset = this.baseDatasets;
126-
dataset[0].backgroundColor =
127-
backgroundColor !== 'transparent'
128-
? getStyle(`--cui-${backgroundColor}`)
129-
: backgroundColor;
130-
dataset[0].borderColor =
131-
borderColor !== 'transparent'
132-
? getStyle(`--cui-${borderColor}`)
133-
: borderColor;
124+
dataset[0].backgroundColor = backgroundColor !== 'transparent' ? getStyle(`--cui-${backgroundColor}`) : backgroundColor;
125+
dataset[0].borderColor = borderColor !== 'transparent' ? getStyle(`--cui-${borderColor}`) : borderColor;
126+
dataset[0].pointBackgroundColor = getStyle(`--cui-${borderColor}`);
134127
dataset[0].borderWidth = borderWidth;
135128
return dataset;
136129
}
@@ -142,5 +135,4 @@ export class WidgetsEComponent implements AfterContentInit {
142135
baseDate.setDate(baseDate.getDate() + shift);
143136
return baseDate.toLocaleDateString(locale, { weekday: 'short' });
144137
}
145-
146138
}

0 commit comments

Comments
 (0)