Skip to content

Commit 72a0287

Browse files
committed
VueUiOnion always keep same track size when series are segregated
1 parent 678501f commit 72a0287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/vue-ui-onion.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ const mutableCount = computed(() => {
162162
163163
const onionSkin = computed(() => {
164164
return {
165-
gutter: drawableArea.value.width / 2 / mutableCount.value * onionConfig.value.style.chart.layout.gutter.width,
166-
track: drawableArea.value.width / 2 / mutableCount.value * onionConfig.value.style.chart.layout.track.width,
165+
gutter: drawableArea.value.width / 2 / immutableDataset.value.length * onionConfig.value.style.chart.layout.gutter.width,
166+
track: drawableArea.value.width / 2 / immutableDataset.value.length * onionConfig.value.style.chart.layout.track.width,
167167
}
168168
});
169169

0 commit comments

Comments
 (0)