Skip to content

Commit 2c09ea0

Browse files
committed
Modification - VueUiStackbar - Minor tweaks
1 parent af92e02 commit 2c09ea0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/vue-ui-stackbar.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ const { loading, FINAL_DATASET, manualLoading } = useLoading({
176176
dataLabels: { show: false },
177177
},
178178
grid: {
179+
frame: {
180+
stroke: '#6A6A6A'
181+
},
179182
scale: {
180183
scaleMin: 0,
181184
scaleMax: 40
@@ -746,7 +749,12 @@ const datasetTotals = computed(() => {
746749
747750
const datasetTotalsMinimap = computed(() => {
748751
if (!FINAL_CONFIG.value.style.chart.zoom.minimap.show) return [];
749-
return sumSeries(unmutableDataset.value.filter(ds => !segregated.value.includes(ds.id)))
752+
return sumSeries(unmutableDataset.value.map(ds => {
753+
return {
754+
...ds,
755+
series: ds.series.map(d => d ?? 0)
756+
}
757+
}).filter(ds => !segregated.value.includes(ds.id)))
750758
});
751759
752760
const allMinimaps = computed(() => {
@@ -1680,8 +1688,7 @@ function selectX({ seriesIndex, datapoint }) {
16801688
16811689
function getZeroPositions() {
16821690
const y0 = yLabels.value?.[0]?.zero ?? drawingArea.value.bottom;
1683-
const x0 = yLabels.value?.[0]?.horizontal_zero ?? drawingArea.value.left;
1684-
return { y0, x0 };
1691+
return { y0 };
16851692
}
16861693
16871694
function placeLabelTotalY(index) {

0 commit comments

Comments
 (0)