From c32eaf47e50f5fc0cb7630cbf38819cd03b5294b Mon Sep 17 00:00:00 2001 From: Stephen Liu <750188453@qq.com> Date: Mon, 7 Mar 2022 17:29:34 +0800 Subject: [PATCH] fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month (#19043) * fix(big-number): Big Number with Trendline Chart is not working if Time Grain is set to Month * use start frequency. --- .../src/BigNumber/BigNumberWithTrendline/buildQuery.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts index b4dcd2a09..be35734c2 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/buildQuery.ts @@ -33,9 +33,9 @@ const TIME_GRAIN_MAP: Record = { PT30M: '30min', PT1H: 'H', P1D: 'D', - P1M: 'M', - P3M: 'Q', - P1Y: 'A', + P1M: 'MS', + P3M: 'QS', + P1Y: 'AS', // TODO: these need to be mapped carefully, as the first day of week // can vary from engine to engine // P1W: 'W',