@@ -82,6 +82,8 @@ export class WidgetsEComponent implements AfterContentInit {
82
82
barThickness : 'flex' ,
83
83
borderColor : 'transparent' ,
84
84
backgroundColor : 'transparent' ,
85
+ pointBackgroundColor : 'transparent' ,
86
+ pointHoverBorderColor : 'transparent' ,
85
87
borderWidth : 1
86
88
}
87
89
] ;
@@ -117,20 +119,11 @@ export class WidgetsEComponent implements AfterContentInit {
117
119
}
118
120
}
119
121
120
- getDataset ( {
121
- backgroundColor = 'transparent' ,
122
- borderColor = 'transparent' ,
123
- borderWidth = 1
124
- } ) {
122
+ getDataset ( { backgroundColor = 'transparent' , borderColor = 'transparent' , borderWidth = 1 } ) {
125
123
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 } ` ) ;
134
127
dataset [ 0 ] . borderWidth = borderWidth ;
135
128
return dataset ;
136
129
}
@@ -142,5 +135,4 @@ export class WidgetsEComponent implements AfterContentInit {
142
135
baseDate . setDate ( baseDate . getDate ( ) + shift ) ;
143
136
return baseDate . toLocaleDateString ( locale , { weekday : 'short' } ) ;
144
137
}
145
-
146
138
}
0 commit comments