Skip to content

Commit 78c5882

Browse files
committed
update smooth button on refresh
1 parent e00e499 commit 78c5882

File tree

2 files changed

+2
-1
lines changed
  • app/ui/src

2 files changed

+2
-1
lines changed

app/ui/src/analyses/experiments/chart_wrapper/view.ts

+1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ export class ViewWrapper {
381381
this.scaleButton.isToggled = this.dataStore.chartType > 0
382382
this.focusButton.isToggled = this.dataStore.focusSmoothed
383383
this.smoothSlider.value = this.dataStore.smoothValue
384+
this.leftSmoothButton.isToggled = this.dataStore.smoothFunction === SmoothingType.LEFT_EXPONENTIAL
384385

385386
this.optionRowContainer.innerHTML = ''
386387
this.optionRowContainer.classList.add('chart-options')

app/ui/src/components/charts/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,6 @@ export function getSmoother(smoothingType: string, opt: SeriesSmoothingOptions):
255255
case SmoothingType.LEFT_EXPONENTIAL:
256256
return new ExponentialMovingAverage(opt)
257257
default:
258-
throw new TwoSidedExponentialAverage(opt)
258+
throw new Error(`Unknown smoothing type: ${smoothingType}`)
259259
}
260260
}

0 commit comments

Comments
 (0)