Skip to content

Commit b8f62c7

Browse files
committed
Fix - VueUiXy - Simplified zoom track styling
1 parent 9f08af9 commit b8f62c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/vue-ui-xy.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,11 +1860,9 @@ export default {
18601860
vm.drawCanvas();
18611861
}
18621862
}
1863-
const dataset = this.dataset;
1863+
18641864
function fillColor(){
1865-
let percent1 = (sliderOne.value / Math.max(...dataset.map(datapoint => datapoint.series.length))) * 100;
1866-
let percent2 = (sliderTwo.value / Math.max(...dataset.map(datapoint => datapoint.series.length))) * 100;
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}%)`;
1865+
sliderTrack.style.background = vm.chartConfig.chart.zoom.color;
18681866
}
18691867
18701868
slideOne();

0 commit comments

Comments
 (0)