Skip to content

Commit db86384

Browse files
committed
Improvement - VueUiXyCanvas - Add config option to set gradient for bars
1 parent 6f01466 commit db86384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/vue-ui-xy-canvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ function drawBars() {
10551055
},
10561056
stops: [
10571057
{ offset: 0, color: ds.color },
1058-
{ offset: 1, color: lightenHexColor(ds.color, 0.5) },
1058+
{ offset: 1, color: FINAL_CONFIG.value.style.chart.bar.gradient.show ? lightenHexColor(ds.color, 0.5) : ds.color },
10591059
]
10601060
}
10611061
}

0 commit comments

Comments
 (0)