@@ -1050,6 +1050,12 @@ export default {
10501050 }
10511051 },
10521052 computed: {
1053+ backgroundColor () {
1054+ return this .chartConfig .chart .backgroundColor ;
1055+ },
1056+ slicerColor () {
1057+ return this .chartConfig .chart .zoom .color ;
1058+ },
10531059 allScales () {
10541060 const lines = this .lineSet .map (l => {
10551061 return {
@@ -1858,7 +1864,7 @@ export default {
18581864 function fillColor (){
18591865 let percent1 = (sliderOne .value / Math .max (... dataset .map (datapoint => datapoint .series .length ))) * 100 ;
18601866 let percent2 = (sliderTwo .value / Math .max (... dataset .map (datapoint => datapoint .series .length ))) * 100 ;
1861- sliderTrack .style .background = ` linear-gradient(to right, #dadae5 ${ percent1} % , #858585 ${ percent1} % , #858585 ${ percent2} %, #dadae5 ${ percent2} %)` ;
1867+ sliderTrack .style .background = ` linear-gradient(to right, ${ vm . chartConfig . chart . zoom . color } ${ percent1} % , ${ vm . chartConfig . chart . zoom . color } ${ percent1} % , ${ vm . chartConfig . chart . zoom . color } ${ percent2} %, #dadae5 ${ percent2} %)` ;
18621868 }
18631869
18641870 slideOne ();
@@ -2809,7 +2815,7 @@ input[type="range"]::-webkit-slider-thumb{
28092815 - webkit- appearance: none;
28102816 height: 1 .3em ;
28112817 width: 1 .3em ;
2812- background- color: # 858585 ;
2818+ background- color: v - bind (slicerColor) ;
28132819 cursor: pointer;
28142820 margin- top: - 6px ;
28152821 pointer- events: auto;
@@ -2822,7 +2828,7 @@ input[type="range"]::-moz-range-thumb{
28222828 width: 1 .3em ;
28232829 cursor: pointer;
28242830 border- radius: 50 % ;
2825- background- color: # 858585 ;
2831+ background- color: v - bind (slicerColor) ;
28262832 pointer- events: auto;
28272833}
28282834input[type= " range" ]:: - ms- thumb{
@@ -2831,12 +2837,12 @@ input[type="range"]::-ms-thumb{
28312837 width: 1 .3em ;
28322838 cursor: pointer;
28332839 border- radius: 50 % ;
2834- background- color: # 858585 ;
2840+ background- color: v - bind (slicerColor) ;
28352841 pointer- events: auto;
28362842}
28372843input[type= " range" ]: active:: - webkit- slider- thumb{
2838- background- color: # CCCCCC ;
2839- border: 3px solid # 858585 ;
2844+ background- color: v - bind (slicerColor) ;
2845+ border: 2px solid v - bind (backgroundColor) ;
28402846}
28412847canvas {
28422848 width: 100 % ;
@@ -2855,7 +2861,7 @@ canvas {
28552861 border- radius: 50 % ;
28562862 cursor: pointer;
28572863 & : focus {
2858- outline: 1px solid # CCCCCC
2864+ outline: 1px solid v - bind (slicerColor);
28592865 }
28602866}
28612867< / style>
0 commit comments