diff --git a/packages/charts/src/chart_types/xy_chart/rendering/area.ts b/packages/charts/src/chart_types/xy_chart/rendering/area.ts index 4a42e1aff5..c46da830f3 100644 --- a/packages/charts/src/chart_types/xy_chart/rendering/area.ts +++ b/packages/charts/src/chart_types/xy_chart/rendering/area.ts @@ -32,7 +32,7 @@ export function renderArea( shift: number, dataSeries: DataSeries, xScale: Scale, - yScale: Scale, + yScale: Scale, panel: Dimensions, color: Color, curve: CurveType, diff --git a/packages/charts/src/chart_types/xy_chart/rendering/line.ts b/packages/charts/src/chart_types/xy_chart/rendering/line.ts index 592567e413..fe1c8b448e 100644 --- a/packages/charts/src/chart_types/xy_chart/rendering/line.ts +++ b/packages/charts/src/chart_types/xy_chart/rendering/line.ts @@ -31,7 +31,7 @@ export function renderLine( shift: number, dataSeries: DataSeries, xScale: Scale, - yScale: Scale, + yScale: Scale, panel: Dimensions, color: Color, curve: CurveType, diff --git a/packages/charts/src/chart_types/xy_chart/rendering/utils.ts b/packages/charts/src/chart_types/xy_chart/rendering/utils.ts index da887519de..b820791804 100644 --- a/packages/charts/src/chart_types/xy_chart/rendering/utils.ts +++ b/packages/charts/src/chart_types/xy_chart/rendering/utils.ts @@ -157,7 +157,7 @@ export function isPointOnGeometry( return yCoordinate >= y && yCoordinate <= y + height && xCoordinate >= x && xCoordinate <= x + width; } -const getScaleTypeValueValidator = (yScale: Scale): ((n: number) => boolean) => { +const getScaleTypeValueValidator = (yScale: Scale): ((n: number) => boolean) => { if (!isLogarithmicScale(yScale)) return () => true; const domainPolarity = getDomainPolarity(yScale.domain); @@ -178,7 +178,7 @@ export type YDefinedFn = ( ) => boolean; /** @internal */ -export function isYValueDefinedFn(yScale: Scale, xScale: Scale): YDefinedFn { +export function isYValueDefinedFn(yScale: Scale, xScale: Scale): YDefinedFn { const validator = getScaleTypeValueValidator(yScale); return (datum, getValueAccessor) => { const yValue = getValueAccessor(datum); @@ -201,7 +201,7 @@ function chromeRenderBugBuffer(y1: number, y0: number): number { } /** @internal */ -export function getY1ScaledValueOrThrowFn(yScale: Scale): (datum: DataSeriesDatum) => number { +export function getY1ScaledValueOrThrowFn(yScale: Scale): (datum: DataSeriesDatum) => number { const datumAccessor = getYDatumValueFn(); const scaleY0Value = getY0ScaledValueOrThrowFn(yScale); return (datum) => { @@ -212,7 +212,7 @@ export function getY1ScaledValueOrThrowFn(yScale: Scale): (datum: DataS } /** @internal */ -export function getY0ScaledValueOrThrowFn(yScale: Scale): (datum: DataSeriesDatum) => number { +export function getY0ScaledValueOrThrowFn(yScale: Scale): (datum: DataSeriesDatum) => number { const isLogScale = isLogarithmicScale(yScale); const domainPolarity = getDomainPolarity(yScale.domain); const logBaseline = domainPolarity >= 0 ? Math.min(...yScale.domain) : Math.max(...yScale.domain); diff --git a/packages/charts/src/chart_types/xy_chart/state/utils/utils.ts b/packages/charts/src/chart_types/xy_chart/state/utils/utils.ts index 99f5d5ea23..496b1e0844 100644 --- a/packages/charts/src/chart_types/xy_chart/state/utils/utils.ts +++ b/packages/charts/src/chart_types/xy_chart/state/utils/utils.ts @@ -438,7 +438,7 @@ function renderGeometries( (xScale.bandwidth * lineShift) / 2, ds, xScale, - yScale, + yScale as Scale, panel, color, spec.curve || CurveType.LINEAR, @@ -471,7 +471,7 @@ function renderGeometries( (xScale.bandwidth * areaShift) / 2, ds, xScale, - yScale, + yScale as Scale, panel, color, spec.curve || CurveType.LINEAR,