diff --git a/app/charts/index.ts b/app/charts/index.ts index f00711925..e50870cf9 100644 --- a/app/charts/index.ts +++ b/app/charts/index.ts @@ -65,6 +65,7 @@ import { Component, Dimension, DimensionType, + DimensionValue, GeoCoordinatesDimension, GeoShapesDimension, getCategoricalDimensions, @@ -622,7 +623,7 @@ export const getInitialConfig = ( dimensionValues: yComponentIds.map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }, }, @@ -1626,7 +1627,7 @@ const chartConfigsAdjusters: ChartConfigsAdjusters = { dimensionValues: [leftMeasure.id, rightMeasureId].map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }; }); @@ -1720,7 +1721,7 @@ const chartConfigsAdjusters: ChartConfigsAdjusters = { dimensionValues: [leftMeasure.id, lineComponentId].map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }; });