Skip to content

Commit 72906d5

Browse files
authored
Merge pull request #220 from labmlai/compare-fix
bug fix: calc y axis for trimmed series
2 parents 3f561db + 1ec1d21 commit 72906d5

File tree

1 file changed

+1
-1
lines changed
  • app/ui/src/components/charts/lines

1 file changed

+1
-1
lines changed

app/ui/src/components/charts/lines/chart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class LineChart {
9696
chartId = `chart_${Math.round(Math.random() * 1e9)}`
9797

9898
changeScale() {
99-
let plotSeries = this.baseSeries.concat(this.currentSeries).map(s => s.series)
99+
let plotSeries = this.baseSeries.concat(this.currentSeries).map(s => s.trimmedSeries)
100100
if (plotSeries.length == 0) {
101101
this.yScale = d3.scaleLinear()
102102
.domain([0, 0])

0 commit comments

Comments
 (0)