Skip to content

Commit e71ba80

Browse files
committed
Improvement - VueUiXy - Ignore null datapoints for line generation
1 parent 4dadd5b commit e71ba80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/vue-ui-xy.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,10 +1898,11 @@ export default {
18981898
}
18991899
}
19001900
})
1901-
const curve = this.createSmoothPath(plots);
1902-
const autoScaleCurve = this.createSmoothPath(autoScalePlots);
1903-
const straight = this.createStraightPath(plots);
1904-
const autoScaleStraight = this.createStraightPath(autoScalePlots);
1901+
1902+
const curve = this.createSmoothPath(plots.filter(p => p.value !== null));
1903+
const autoScaleCurve = this.createSmoothPath(autoScalePlots.filter(p => p.value !== null));
1904+
const straight = this.createStraightPath(plots.filter(p => p.value !== null));
1905+
const autoScaleStraight = this.createStraightPath(autoScalePlots.filter(p => p.value !== null));
19051906
19061907
const scaleYLabels = individualScale.ticks.map(t => {
19071908
return {

0 commit comments

Comments
 (0)