File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,26 @@ export default {
30
30
type: String ,
31
31
default: ' Sales'
32
32
},
33
- pointed: Boolean
33
+ pointed: Boolean ,
34
+ pointHoverBackgroundColor: String
34
35
},
35
36
computed: {
37
+ pointHoverColor () {
38
+ if (this .pointHoverBackgroundColor ) {
39
+ return this .pointHoverBackgroundColor
40
+ } else if (this .backgroundColor !== ' transparent' ) {
41
+ return this .backgroundColor
42
+ }
43
+ return this .borderColor
44
+ },
36
45
defaultDatasets () {
37
46
return [
38
47
{
39
48
data: this .dataPoints ,
40
49
borderColor: getColor (this .borderColor ),
41
50
backgroundColor: getColor (this .backgroundColor ),
42
51
pointBackgroundColor: this .pointBackgroundColor ,
43
- pointHoverBackgroundColor: getColor (this .borderColor ),
52
+ pointHoverBackgroundColor: getColor (this .pointHoverColor ),
44
53
label: this .label
45
54
}
46
55
]
You can’t perform that action at this time.
0 commit comments